Skip to content

Commit

Permalink
Explicitly allow another overflow on add
Browse files Browse the repository at this point in the history
Discovered by libfuzzer and cargo-fuzz.
  • Loading branch information
ruuda committed Feb 22, 2017
1 parent 875c3b2 commit 5bd64c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ fn predict_fixed(order: u32, buffer: &mut [i32]) -> Result<()> {

// The delta is stored, so the sample is the prediction + delta.
let delta = window[coefficients.len()];
window[coefficients.len()] = prediction + delta;
window[coefficients.len()] = prediction.wrapping_add(delta);
}

Ok(())
Expand Down

0 comments on commit 5bd64c7

Please sign in to comment.