Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2024 17:17:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280371] diff(1) attempts to allocate ~10^20 bytes while comparing 32GB text files
Message-ID:  <bug-280371-227-yDBdDSLnjB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280371-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280371-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280371

Dag-Erling Smørgrav <des@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |des@FreeBSD.org
             Status|Open                        |In Progress
           Severity|Affects Only Me             |Affects Some People

--- Comment #2 from Dag-Erling Smørgrav <des@FreeBSD.org> ---
I can fix the integer overflow, but I can't easily make diff work with files
that big.  Its running time is proportional to the square of the total number
of lines in its inputs, and it consumes memory roughly equivalent to the sum of
the sizes of its input plus a nontrivial multiple of the total number of lines
in its inputs.  The best I can do is error out if the files are too large.

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280371-227-yDBdDSLnjB>