[exim-dev] [Bug 1838] Check the return value of every calls …

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1838] Check the return value of every calls to malloc()
https://bugs.exim.org/show_bug.cgi?id=1838

--- Comment #7 from ytrezq@??? ---
Created attachment 900
--> https://bugs.exim.org/attachment.cgi?id=900&action=edit
0001-pull-request#45.patch

Ok, I opened a second pull request that try remove calls to things like
gnutls_free.
But for many parts this couldn’t be achieved.

I only used store_malloc() instead of more specific project’s functions because
it was called elsewhere at many places. If this isn’t the right choice, please
tell it.

the original pull request (pull #45) consider that a temporary action could
increase memory requirement much like what that justify the use of size_t.
Though when the behaviour of the code was the same of store_malloc(), I
performed the replacement.

#46 (which include your suggestion) tries to always replace direct or indirect
(like with gnutls_free) calls to malloc() with store_malloc().

--
You are receiving this mail because:
You are on the CC list for the bug.