We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
head
1 parent 72a1245 commit 8f57923Copy full SHA for 8f57923
1 file changed
src/lib.rs
@@ -303,7 +303,8 @@ fn construct(mut ctx: Context) -> Vec<u8> {
303
let mut offset = 12 + ctx.tables.len() * 16;
304
for (tag, data) in &mut ctx.tables {
305
if *tag == Tag::HEAD {
306
- // Zero out checksum field in head table.
+ // Zero out checksum field in head table. The head table has already
307
+ // been subset and is guaranteed to have the necessary minimum size.
308
data.to_mut()[8..12].fill(0);
309
checksum_adjustment_offset = Some(offset + 8);
310
}
0 commit comments