#systemd WONTFIX'd a bug in their usage of asprintf: https://bugs.freedesktop.org/show_bug.cgi?id=90017 …
@bofh453 @stevecheckoway I didn't check but I was told one of the BSDs always zeros the result on failure.
-
-
@RichFelker@bofh453 OpenBSD's does but they document that it's an OpenBSD-specific thing and should not be relied upon. -
@stevecheckoway@bofh453 In that case you can't rely on the pointer being unmodified if your code might be running on OpenBSD.
End of conversation
New conversation -
-
-
@RichFelker@stevecheckoway ...then that would match glibc's behavior,, iirc (and is also really the only sensible thing to do). -
@bofh453@stevecheckoway Leaving the pointer unchanged and writing a zero are distinct behaviors. -
@RichFelker@stevecheckoway you're right, for some insane reason I also thought glibc did zero-on-failure.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.