cvs commit: src/usr.bin/ar write.c

Kai Wang kaiw at FreeBSD.org
Sun Mar 2 07:01:02 UTC 2008


kaiw        2008-03-02 07:01:01 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/ar           write.c 
  Log:
  - 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 at plass-family.net>
  Tested by:      Michael Plass <mfp49_freebsd at plass-family.net>
  Reviewed by:    jkoshy
  Approved by:    jkoshy
  
  Revision  Changes    Path
  1.4       +17 -11    src/usr.bin/ar/write.c


More information about the cvs-all mailing list