Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
7c53ed7
build(deps): add test-case as a dev-dependency
sami-daniel Aug 13, 2026
fc18aa5
fix(side-diff): compute the column layout without signed casts
sami-daniel Aug 13, 2026
6e21ff1
fix(side-diff): honour --expand-tabs in the column layout
sami-daniel Aug 13, 2026
de42d46
test(fuzz): fuzz width and tabsize in the side-by-side target
sami-daniel Aug 13, 2026
1f4ed9f
test(side-diff): drop the comment on the expanded layout expectation
sami-daniel Aug 13, 2026
2c45eda
test(side-diff): cover the carriage return padding at the widest line
sami-daniel Aug 13, 2026
dd1a951
test(fuzz): fuzz the whole tab size range in the side-by-side target
sami-daniel Aug 13, 2026
d136920
style(fuzz): write the exponent in the width comment as ASCII
sami-daniel Aug 13, 2026
1c1fb0c
test(side-diff): replace test-case with plain loops
sami-daniel Oct 6, 2026
326eaee
style(fuzz): shorten the width comment in the side-by-side target
sami-daniel Oct 6, 2026
6a270f2
style(side-diff): restore the comment on the unpadded right line
sami-daniel Oct 6, 2026
06445df
style(side-diff): restore the left and right file notes on diff
sami-daniel Oct 6, 2026
5b26b67
test(side-diff): drop the duplicated width 130 layout assertions
sami-daniel Oct 6, 2026
36b3d9b
test(side-diff): assert on the rendered output
sami-daniel Oct 6, 2026
9b5ab11
test(side-diff): assert the output at the widest line and tab size
sami-daniel Oct 6, 2026
950aa3e
Merge branch 'main' into fix/264-side-diff-layout-overflow
sami-daniel Oct 6, 2026
c7353ce
test(side-diff): adapt two tests to the gutter marker fix from main
sami-daniel Oct 6, 2026
7c69857
Trigger CI
sami-daniel Oct 6, 2026
ecf4ab1
fix(side-diff): lay out each row from the column the text ended at
sami-daniel Oct 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions fuzz/fuzz_targets/fuzz_side.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ use diffutilslib::params::Params;
use std::fs::{self, File};
use std::io::Write;

fuzz_target!(|x: (Vec<u8>, Vec<u8>, /* usize, usize */ bool)| {
let (original, new, /* width, tabsize, */ expand) = x;

// if width == 0 || tabsize == 0 {
// return;
// }
// The width is a u16 because the output is padded up to it. A usize
// width needs exabytes, and a u32 one took 537 MB and 57 seconds.
fuzz_target!(|x: (Vec<u8>, Vec<u8>, u16, usize, bool)| {
let (original, new, width, tabsize, expand) = x;

let params = Params {
// width,
// tabsize,
width: width as usize,
tabsize,
expand_tabs: expand,
..Default::default()
};
Expand Down
Loading
Loading