]> sourceware.org Git - newlib-cygwin.git/commit
nano-mallocr: Prevent NULL pointer de-reference in free_list
authorHenrik Nilsson via Newlib <newlib@sourceware.org>
Fri, 17 Feb 2023 05:56:49 +0000 (06:56 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 27 Feb 2023 09:54:26 +0000 (10:54 +0100)
commitc8397ae8171f00dcfb071130e6ea2b64aea17ded
tree7717c59212e9926abd98cbf1eaaee236a4a0f527
parent5011c8cc48a22d9ccfc8d11a0f5cbfc0e5db73a6
nano-mallocr: Prevent NULL pointer de-reference in free_list

The existing code checked if there was a chunk in free_list and
that the tail was not the next chunk.

The check if there is a chunk is not needed since it's already
known but the case of a single chunk in free_list needs to be
handled differently.
newlib/libc/stdlib/nano-mallocr.c
This page took 0.032932 seconds and 5 git commands to generate.