Skip to content

Commit

Permalink
fix #131.
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos authored May 19, 2024
1 parent f55631b commit 48928f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libbz3.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ BZIP3_API s32 bz3_decode_block(struct bz3_state * state, u8 * buffer, s32 data_s
decode_bytes(state->cm_state, b2, size_src);
swap(b1, b2);

if (bwt_idx >= size_src) {
if (bwt_idx > size_src) {
state->last_error = BZ3_ERR_MALFORMED_HEADER;
return -1;
}
Expand Down

0 comments on commit 48928f4

Please sign in to comment.