[OpenWrt-Devel] [PATCH 0/6] uclient: Handle memory allocation failures
Tobias Schramm
tobleminer at gmail.com
Sat Feb 17 22:36:34 EST 2018
Hi,
this series of patches adds some code to handle memory allocation failures
without crashing.
Previously a lot of memory allocations were not checked for NULL ptrs
resulting in nullpointer dereferences if (lib)uclient ran out of memory
Regards
Tobias Schramm
Tobias Schramm (6):
uclient-fetch: Check for nullpointer returned by open_output_file
uclient-http: basic auth: Handle memory allocation failure
uclient-http: auth digest: Handle multiple possible memory allocation
failures
uclient-http: Handle memory allocation failure
uclient-utils: Handle memory allocation failure for url file name
uclient: Handle memory allocation failure for url
uclient-fetch.c | 5 +++++
uclient-http.c | 53 ++++++++++++++++++++++++++++++++++++++++++-----------
uclient-utils.c | 8 ++++++--
uclient.c | 3 +++
4 files changed, 56 insertions(+), 13 deletions(-)
--
2.16.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list