Skip to content

Commit

Permalink
fix #123
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Jan 2, 2022
1 parent cad73c4 commit 1f89edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/src/enc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ fn flate_decode(data: &[u8], params: &LZWFlateParams) -> Result<Vec<u8>> {
let mut out_off = 0; // offset into output buffer
let mut last_out_off = 0; // last offset to output buffer

while in_off < inp.len() {
while in_off + stride < inp.len() {
let predictor = PredictorType::from_u8(inp[in_off])?;
in_off += 1; // +1 because the first byte on each row is predictor

Expand Down

0 comments on commit 1f89edc

Please sign in to comment.