[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

malloc() patches round 3

From: Igor Khavkine
Subject: malloc() patches round 3
Date: Wed, 22 Aug 2001 09:16:45 -0400
User-agent: Mutt/1.3.20i

This is the last big round of patches. Most changes are trivial
and some change prototypes of internal functions. No external
interfaces were modified.

There are still problems in libpager though. In _pager_lock_object()
and pager_change_attributes(), malloc() is used without its return
value being checked. Both functions are void and the semantics of their
use (as far as I can tell) do not allow to check for errors easily.

Since this is a support library, I would prefer that it did not by itself
terminate the running process under any circumstances and propagted
all errors to the programs that use it, however there are always excetions.
So should the fix be a simple assert() statement or shoul I look into
libpager in more detail to be able to propagate these errors?


Attachment: malloc-round3.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]