We normally use the first byte of the first block, but if there are no
blocks this results in reading beyond the allocated structure. In this
case sort on the number of blocks.
Submitted by: andrew
Sponsored by: DARPA, AFRL
Differential D14163
Fix a read past the end of a buffer in fsck. mckusick on Feb 2 2018, 1:58 AM. Authored by Tags None Referenced Files
Subscribers
Details
We normally use the first byte of the first block, but if there are no Submitted by: andrew
Diff Detail
Event TimelineComment Actions I concur with the problem, but differ on the solution. When I tried to upload my proposed change it created a whole new report https://reviews.freebsd.org/D14177. How do I just attach a new diff here? Comment Actions You can use: arc diff --update D14163. It may require you to commandeer the this review in the UI (which is fine by me). Comment Actions If I read this correctly, you're always allocating one block now? That seems fine to me. Comment Actions In response to brooks. You are correct that this always allocates one block and initialises it to zero. Thus all zero-length directories will sort to the front of the list so that they will all be reported in a block. |