freebsd-skq/sbin/savecore
Conrad Meyer 8df555925a savecore(8): Fix buffer overrun inspecting disks with varying sector size
A premature optimization lead to caching a native-sector sized memory
allocation.  If the program examined a 512 byte sector disk, then a 4096
byte sector disk, the program would overrun the cached 512 byte buffer.

Just remove the optimization to fix the bug.  This was introduced with the 4Kn
dump support in r298076.

Reported by:	markj
Reviewed by:	markj, rpokala
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D8162
2016-10-06 05:16:44 +00:00
..
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
savecore.8 Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
savecore.c savecore(8): Fix buffer overrun inspecting disks with varying sector size 2016-10-06 05:16:44 +00:00