HomeFreeBSD

Correct a bug that was somehow both obvious and hard-to-see. :-)

Description

Correct a bug that was somehow both obvious and hard-to-see. :-)
An incorrectly-sized allocation was being made due to an incorrect
argument to the `sizeof' operator. Obvious, because it violated the
`foo = malloc(sizeof(*foo))' idiom. Hard-to-see, because it was a
missing *' (*p' versus `**p').

Resulting failure was
Reported by: ache

Sponsored by: DARPA, Network Associates Laboratories

Details

Provenance
Jacques Vidrine <nectar@FreeBSD.org>Authored on Apr 21 2003, 3:44 PM
Parents
rG66250360821b: Reset pcb_gs and %gs before possibly invalidating it.
Branches
Unknown
Tags
Unknown

Event Timeline