[Bug 3534] probable underflow calculating display width of file name

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Feb 10 16:28:57 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3534

--- Comment #2 from programmerjake at gmail.com ---
Created attachment 3665
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3665&action=edit
backtrace from snprintf call with invalid maxlen

(In reply to Damien Miller from comment #1)
> I'm not able to replicate this. Are you able to get a stacktrace?

yes. I recompiled from source on commit
6dfb65de949cdd0a5d198edee9a118f265924f33 and edited progressmeter.c,
changing can_output to always return 1, and editing setscreensize to
always set win_size to 121. line numbers should still match the
unedited version.

I built it with:
configure --prefix=/home/jacob/projects/openssh/dbg CFLAGS='-g -O0'
--with-privsep-path=/run/sshd --disable-strip

created a file:
touch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and debugged the built scp with args:
/home/jacob/projects/openssh/dbg/bin/scp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ localhost:

Attached the backtrace

> 
> Failing that, what are your LOCALE and LC_* environment variables
> set to?

LANG=en_US.UTF-8
LC_COLLATE=C

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list