vmsplice(): the making of a local root exploit
Posted Feb 13, 2008 7:27 UTC (Wed) by
JoeF (subscriber, #4486)
In reply to:
vmsplice(): the making of a local root exploit by tialaramex
Parent article:
vmsplice(): the making of a local root exploit
For example, if you work on code related to SCSI or filesytems or otherwise connected with
disks, you're expected to recognise that (bytes >> 9) converts from a byte count to a sector
count, since sectors are 512 bytes.
Hmm, no. The use of magic numbers is something I beat out of undergrads. Use a define, or a macro.
When I do code reviews at my job, I always latch onto the use of magic numbers.
And, your example is flawed, anyway. While hardware sectors may be 512 bytes (currently), filesystems usually deal with larger blocks.
(
Log in to post comments)