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 d8af4f7 commit 6174cf8Copy full SHA for 6174cf8
1 file changed
src/lib.rs
@@ -309,7 +309,8 @@ fn construct(mut ctx: Context) -> Vec<u8> {
309
let mut offset = 12 + ctx.tables.len() * 16;
310
for (tag, data) in &mut ctx.tables {
311
if *tag == Tag::HEAD {
312
- // Zero out checksum field in head table.
+ // Zero out checksum field in head table. The head table has already
313
+ // been subset and is guaranteed to have the necessary minimum size.
314
data.to_mut()[8..12].fill(0);
315
checksum_adjustment_offset = Some(offset + 8);
316
}
0 commit comments