bug-hurd
[Top][All Lists]
Advanced

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

Malloc patches, round 1 (reseting round count)


From: Igor Khavkine
Subject: Malloc patches, round 1 (reseting round count)
Date: Wed, 1 Aug 2001 02:39:53 -0400
User-agent: Mutt/1.3.18i

I've looked through the comments to my eariler posts, and I've
made appropriate changes. Even the formatting. :-)

Attached is a bigger patch for many places where the return
value of malloc() was not checked. I think I can fit the rest
of what I have into two more patches of similar size.

Libnetfs is in a separate patch because I had to modify some
other code to make sure the return value of an internal
function was checked and acted upon.

There is also an issue with libpager. Some of the functions
which use malloc() provide no venue for reporting errors.
For example the functions _pager_lock_object() and
pager_change_attribute() return void, and so have no way to report
errors, other the aborting the whole program. Also some functions
that may fail and return an error are not checked for their
return value, for example _pager_pagemap_resize(). I think
some interface changes will be required to fix the code.

Igor

Attachment: malloc-libnetfs.diff
Description: Text document

Attachment: malloc-round1.diff
Description: Text document


reply via email to

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