bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/17510] strings: crash when given a truncated ELF


From: lcamtuf at coredump dot cx
Subject: [Bug binutils/17510] strings: crash when given a truncated ELF
Date: Mon, 27 Oct 2014 18:59:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17510

--- Comment #7 from Michal Zalewski <lcamtuf at coredump dot cx> ---
Do you want me to file separate bugs for each?

For example, I have this in srec.c:

      char buf[10];
...
        sprintf (buf, "\\%03o", (unsigned int) c);

But with this test case, c will be -44, or "\1777777777777777777724", which
sounds a lot longer than 9 characters.

http://lcamtuf.coredump.cx/strings-stack-overflow

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]