Skip to content

Commit

Permalink
Fix charset format 2 parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Mar 19, 2023
1 parent a57e365 commit e27cd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cff/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ fn read_charset(data: &[u8], num_glyphs: u16) -> Result<Charset<'_>> {
while seen < num_glyphs {
r.read::<u16>()?;
seen = seen.saturating_add(1);
seen = seen.saturating_add(1 + r.read::<u16>()?);
seen = seen.saturating_add(r.read::<u16>()?);
len += 4;
}
}
Expand Down

0 comments on commit e27cd57

Please sign in to comment.