[OpenWrt-Devel] [PATCH 0/6] uclient: Handle memory allocation failures
John Crispin
john at phrozen.org
Sun Feb 18 05:20:46 EST 2018
On 18/02/18 04:36, Tobias Schramm wrote:
> 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
Hi Tobias,
thanks for the fixes, looks good overall, please also add a very short
description to each one of the patches.
John
>
> 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(-)
>
_______________________________________________
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