Closed madsmtm closed 8 months ago
Hey, I ran a fuzzer on my project using the LCS algorithm, and found that it crashes in the following situation:
use similar::algorithms::{lcs, Capture}; let mut d = Capture::new(); lcs::diff(&mut d, &[0], 0..1, &[0, 0], 0..2).unwrap();
Line it crashes on: https://github.com/mitsuhiko/similar/blob/2b31f65445df9093ba007ca5a5ae6a71b899d491/src/algorithms/lcs.rs#L83
Hey, I ran a fuzzer on my project using the LCS algorithm, and found that it crashes in the following situation:
Line it crashes on: https://github.com/mitsuhiko/similar/blob/2b31f65445df9093ba007ca5a5ae6a71b899d491/src/algorithms/lcs.rs#L83