Ticket #29 (closed bug: fixed)

Opened 1 year ago

Last modified 5 months ago

Several bugs in malloc()

Reported by: solar Assigned to: solar
Milestone: v0.5 Version: 0.4.1
Keywords: Cc:

Description

The malloc() implementation of v0.4.1 is faulty.

  • The "node split" code, which splits a memory node if it is sufficiently larger than the requested size, tries to split off too-small fractions (large enough to hold _PDCLIB_MINALLOC bytes, but not the necessary memnode structure), getting the node size wrong in the process (fatal error).
  • The list handling was a bit off, potentionally dropping "split nodes" from the free nodes list.

Changeset [336] addressed these issues, but the code might still be buggy. More test cases to cover the above issues is also needed.

Change History

09/05/09 23:49:46 changed by solar

  • status changed from new to closed.

Additional test cases do not expose any additional errors. Good enough for now.