summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2011-07-17 21:08:16 +0000
committerrstone <rstone@FreeBSD.org>2011-07-17 21:08:16 +0000
commitcecff2d26e805364b921c7eb9189e52e6ea24cb1 (patch)
treec1563296e7eade8c79bf963d28607497d221b28d /sys/netinet/in_pcb.h
parentc55f34f6d6edc7a75ee7ec67521b8d711ac60503 (diff)
downloadFreeBSD-src-cecff2d26e805364b921c7eb9189e52e6ea24cb1.zip
FreeBSD-src-cecff2d26e805364b921c7eb9189e52e6ea24cb1.tar.gz
The MBR uses a 32-bit unsigned integer to store the size of a slice, but
fdisk(1) internally uses a signed int. Should a user attempt to specify a slice containing more than 2^31 - 1 sectors, an error will be reported on systems with sizeof(long) == 4 and the slice size will be silently truncated on systems with sizeof(long) > 4. Instead use an unsigned long to store the slice size in fdisk(1). This allows the user to specify a slice size up to the maximum permitted by the MBR on-disk format and does not have any problems with silent truncation should the use specify an slice size larger than 2^32 on systems with sizeof(long) > 4. Submitted by: Mark Johnston (markjdb AT gmail DOT com) MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/in_pcb.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud