[PATCH] mtrace: properly handle realloc (p, 0)

KOSAKI Motohiro kosaki.motohiro@gmail.com
Wed Jan 2 18:23:00 GMT 2013


> KOSAKI Motohiro <kosaki.motohiro@gmail.com> writes:
>
>> realloc (p, 0) behavior is an implementation defined
>
> No.

Interesting. So, I reread
http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_400.htm. If we
don't agree it is implementation defined. realloc(p, 0) should behave
as BSD. then your patch is incorrect. no?



More information about the Libc-alpha mailing list