HomeFreeBSD

- Do not malloc buffer for 0-size member when reading from archive.

Description

  • Do not malloc buffer for 0-size member when reading from archive.
  • Fix a malloc buffer overrun: Use a while loop to check whether the string buffer is big enough after resizing, since doubling once might not be enough when a very long member name or symbol name is provided.
  • Fix typo.

Reported by: Michael Plass <mfp49_freebsd@plass-family.net>
Tested by: Michael Plass <mfp49_freebsd@plass-family.net>
Reviewed by: jkoshy
Approved by: jkoshy

Details

Provenance
kaiwAuthored on Mar 2 2008, 7:01 AM
Parents
rG48f9a2656a39: Translate the r_info field of ELF relocation records when converting
Branches
Unknown
Tags
Unknown

Event Timeline