marius      2006-01-23 14:33:53 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/boot/common      module.c 
  Log:
  MFC: 1.26
  
  In moduledir_readhints() cast the value returned by sizeof() to ssize_t
  when checking whether it's greater than a struct stat st_size in order
  to also catch the case when st_size is -1. Previously this check didn't
  trigger on sparc64 when st_size is -1 (as it's the case for a file on
  a bzipfs, TFTP server etc.), causing the content of the linker hints
  file to be copied to memory referenced by a null-pointer.
  
  PR:             91231
  
  Revision   Changes    Path
  1.25.10.1  +2 -1      src/sys/boot/common/module.c
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to