git: boot - Fix two bugs in the ufs code.

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 7 22:35:14 PDT 2014


commit 67fefd076e8223c2c65e0f8b31bbc2848e3c047e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Aug 7 22:31:46 2014 -0700

    boot - Fix two bugs in the ufs code.
    
    * Fix an incorrect start f_seekp position on open().  When open()ing a path
      the fp is used for the directory search.  A seek position left over from
      the directory search can wind up being left in place after the file has
      been located and openned, causing the starting seek position to not be 0.
    
    * Fixes problems with the boot loader not detecting valid modules or a
      valid kernel image.
    
    * Handle an overflow case in fp->f_nindir[] initialization.  This case will
      not normally occur.

Summary of changes:
 lib/libstand/ufs.c | 6 ++++++
 1 file changed, 6 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/67fefd076e8223c2c65e0f8b31bbc2848e3c047e


-- 
DragonFly BSD source repository



More information about the Commits mailing list