Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jan 2011 23:06:54 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netsmb smb_dev.h smb_subr.c smb_subr.h
Message-ID:  <201101082307.p08N78wW004226@repoman.freebsd.org>

index | next in thread | raw e-mail

csjp        2011-01-08 23:06:54 UTC

  FreeBSD src repository

  Modified files:
    sys/netsmb           smb_dev.h smb_subr.c smb_subr.h 
  Log:
  SVN rev 217174 on 2011-01-08 23:06:54Z by csjp
  
  Change some variables from int to size_t.  This is more accurate since
  these variables represent sizes in one capacity or another.  There is
  no reason to allow negative numbers.  Change userspace shared structure
  elements that get used for the modified functions from int to uint32_t,
  since it's not clear what userspace programs use these fields, and we
  do not want to break binary compatibility.  This fixes a panic when
  corrupt or bogus data is passed into the kernel.
  
  Obtained from:  NetBSD
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.7       +2 -2      src/sys/netsmb/smb_dev.h
  1.23      +10 -8     src/sys/netsmb/smb_subr.c
  1.15      +4 -4      src/sys/netsmb/smb_subr.h


home | help

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