[uclibc-ng-devel] [PATCH] Fix NULL pointer dereference in open_memstream()

Eugene Yudin e.yudin at ndmsystems.com
Fri Feb 22 17:47:53 CET 2019


Current version of uClibc-ng has issue in open_memstream() function.
If the cookie variable is NULL (due malloc() fail) then null pointer is
dereferenced after if block.

The attached patch fixes this issue.
Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclibc-ng.org/pipermail/devel/attachments/20190222/c17c0882/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open_memstream_fix_null_pointer_dereference.patch
Type: text/x-patch
Size: 384 bytes
Desc: not available
URL: <http://mailman.uclibc-ng.org/pipermail/devel/attachments/20190222/c17c0882/attachment.bin>

More information about the devel mailing list