[LLVMbugs] [Bug 21321] locale scan-build triggers CERT MEM04 zero-length allocation error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 27 12:11:11 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21321

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #3 from Marshall Clow (home) <mclow.lists at gmail.com> ---
Ok, I was wrong. Turns out that the part of the standard I quoted is for C++
allocation functions (i.e, replacements for operator new, or method calls in
allocators), not for functions that were hoisted from C.

Committed revision 220702 to fix the problem in <locale> (different from the
suggested fix, though).

Also, while looking at other calls to realloc in ios.cpp, I found some integer
overflows, as well as a bug in register_callback (__event_cap_ was never
getting updated).

Anyway, they're all better now. Sorry for the "invalid" tag.

-- 
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/20141027/5453bbee/attachment.html>


More information about the llvm-bugs mailing list