https://bugs.kde.org/show_bug.cgi?id=436413

--- Comment #2 from Mark Wielaard <[email protected]> ---
We cannot tell pre-C11 code from C11 code, but realloc with size zero has
always been problematic because the the behavior has been implementation
defined and different implementations decided to implement it differently (some
freed the original pointer, some returned an invalid pointer, some returned
NULL, some set errno, etc.) So IMHO calling realloc with size zero should
always be flagged.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to