Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 13:18:49 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/boot/common module.c
Message-ID:  <200601121318.k0CDInws004798@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marius      2006-01-12 13:18:49 UTC

  FreeBSD src repository

  Modified files:
    sys/boot/common      module.c 
  Log:
  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
  MFC after:      1 week
  
  Revision  Changes    Path
  1.26      +2 -1      src/sys/boot/common/module.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601121318.k0CDInws004798>