difftastic icon indicating copy to clipboard operation
difftastic copied to clipboard

[2; .txt, .js] Outputs entirety of generated file despite there being only two changes; tries to allocate 16.3 TiB

Open berrymot opened this issue 11 months ago • 7 comments

Buy one issue, get another free!

(1) A description of the issue. A screenshot is often helpful too.

This occurred when running git diff on this before commit.

image

This continues for all 25,109 lines, excluding the empty final one.

It diffs data/data.txt fine, but then tries allocating ~18 trillion bytes for the diff of data/jbo.js, probably at least because it's 4.54 MiB squished onto one line. I admit I don't know what to do about this.

image

(2) A copy of what you're diffing. If you're diffing files, include the before and after files. If you're using difftastic with a VCS repository (e.g. git), include the URL and commit hash.

Link above; hash is 2190a95d50cfe15039df80f53a310f66a40008e3.

(3) The version of difftastic you're using (see difft --version) and your operating system.

0.55, Windows 11

berrymot avatar Feb 28 '24 17:02 berrymot