[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?
Igor
malloc-round3.diff
Description: Text document
- malloc() patches round 3,
Igor Khavkine <=
- Re: malloc() patches round 3, Marcus Brinkmann, 2001/08/22
- Re: malloc() patches round 3, Thomas Bushnell, BSG, 2001/08/22
- Re: malloc() patches round 3, Igor Khavkine, 2001/08/22
- Re: malloc() patches round 3, Thomas Bushnell, BSG, 2001/08/22
- Re: malloc() patches round 3, Igor Khavkine, 2001/08/22
- Re: malloc() patches round 3, Thomas Bushnell, BSG, 2001/08/22
- Re: malloc() patches round 3, Ognyan Kulev, 2001/08/23
- Re: malloc() patches round 3, Jeroen Dekkers, 2001/08/23
- Re: malloc() patches round 3, eric . rannaud . liste, 2001/08/24