DragonFly-2.3.0.61.g6825e master lib/libstand bzipfs.c cd9660.c close.c dosfs.c ext2fs.c gzipfs.c hammerread.c open.c tftp.c ufs.c zalloc_malloc.c zipfs.c sys/boot/common devopen.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Feb 14 23:53:05 PST 2009


commit 6825e71f24cd3f80f065ebcb42de337cd284ec92
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Feb 14 23:45:22 2009 -0800

    Boot loader fixes - fix recursive malloc()/free() errors, NULL freed fields
    
    * Fix reported loader panics related to corrupt malloc areas.  The zip/gzip
      modules were using a static variable to hold malloc()ed space.  The
      field was getting tromped by recursion.
    
    * Fix numerous cases where file structure fields are not NULL'd out upon
      release.
    
    * Fix numerous cases where a double close might result in a double free.
    
    * Fix a benign bug in libstand's realloc().

Summary of changes:
 lib/libstand/bzipfs.c        |    9 ++++++---
 lib/libstand/cd9660.c        |    6 ++++--
 lib/libstand/close.c         |    4 +++-
 lib/libstand/dosfs.c         |   13 +++++++++----
 lib/libstand/ext2fs.c        |    1 +
 lib/libstand/gzipfs.c        |    3 +--
 lib/libstand/hammerread.c    |   32 ++++++++++++++++++++------------
 lib/libstand/open.c          |    7 +++----
 lib/libstand/tftp.c          |    2 +-
 lib/libstand/ufs.c           |    1 +
 lib/libstand/zalloc_malloc.c |    5 ++++-
 lib/libstand/zipfs.c         |    2 +-
 sys/boot/common/devopen.c    |    1 +
 13 files changed, 55 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6825e71f24cd3f80f065ebcb42de337cd284ec92


-- 
DragonFly BSD source repository





More information about the Commits mailing list