[LLVMbugs] [Bug 17622] Different sscanf results from clang++ and g++
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Oct 19 23:16:56 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17622
David Majnemer <david.majnemer at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |david.majnemer at gmail.com
Resolution|--- |INVALID
--- Comment #2 from David Majnemer <david.majnemer at gmail.com> ---
There is a bug in your code causing a stack-buffer-overflow. -fsanitize=address
would catch this.
'KQkq' requires a character buffer with five bytes because it needs a NULL
terminator but cas only holds four bytes. Changing it gives the expected
result.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131020/1ea54969/attachment.html>
More information about the llvm-bugs
mailing list