]> git.ipfire.org Git - thirdparty/cups.git/commit
Improve state handling in cases of memory allocation failure 590/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Fri, 20 Jan 2023 17:47:21 +0000 (12:47 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Tue, 2 May 2023 14:07:48 +0000 (10:07 -0400)
commit6fe25f7c48ab6ef9becaba5f901c898820b9970b
tree49a90d4d1e8ead6ce7b835376f675cff0f600b3d
parentbae56da37d5ff10deb473331392659e3496e2446
Improve state handling in cases of memory allocation failure

Many lines of code assume that malloc will not fail. In cases where it does, sometimes the program does not know, and as a result, memory can leak and more disastrous consequences can happen before the program ultimately finds something is wrong and then calls exit();
15 files changed:
backend/dnssd.c
cgi-bin/var.c
cups/dest.c
cups/globals.c
cups/http.c
cups/ipp.c
cups/language.c
cups/ppd-cache.c
cups/ppd-emit.c
cups/raster-stream.c
cups/tls-sspi.c
scheduler/cert.c
scheduler/cups-driverd.cxx
scheduler/job.c
tools/ippfind.c