From nobody Sat Jul 27 17:17:32 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WWWXG2j9Vz5RLX7 for ; Sat, 27 Jul 2024 17:17:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WWWXG1Z4Lz4j0t for ; Sat, 27 Jul 2024 17:17:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722100654; a=rsa-sha256; cv=none; b=KdwuN8H2RzA7+bH+5qHc033a27n2yhy15W/B36HKJZvi7Q+g39qwOdlreeE4quK1FEKJTQ Ecoa71MBdMbxYNVyx2GLN0UmFGN5oYRdnOIeB8rBrCA1oho1Uu6N/Hx82aRPACCm308ZPg 2Gosu0s2LojL3qN8+++Ar2LkREel0d6AcxPeP/YqjWRRHTfY3FI11GExwPsbBXJUfS1XgF SFjOWQEalULvnjG8MHx+sSIvBTN5FGwCwi2stZMmnmCj0nMARuT9Oy/jj6JT7CFUgwgzYG e1MZ9YfvCYbWDsPeI9uV/9J5aQ/iHqol7OHbasxUWXHu2S+KqfXlKsiAluv5lg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722100654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9O+ChmiCYVnWikfBdmXOwbgB0z/RlfbNEfeoSvcluSg=; b=Eboje37cwvqNzVKZK2yJO5hmEfdDxz9lY6EXwpInAsWv/Tdz9uVFe7+VjHRmdZl70iX9c4 bhWaa+aSb0Dmp+9pOGYUMPc2iOW4OqC8FfDElKsUQbRpootxHSdl+oq+2uoCMkVVsdanuG 2cxfFGPX0KLvQ7e+x11Gz4TSEgWzCkuQvHiosWUjxou1F6JMGufSyidxTS7wykaUnUysb6 nlYV09UVfW4OLD4v8hZ9DWD3+ipTFbtfHiFs15M0QueHelV9Agwa84Ghk8LNJtw9ad0eAK qLkfLmKi4iei6PiYd3G2LK91TIvKjEGVKu7QNO5xDl9o53j7prrVBGOyvtK0cA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WWWXG14xvzGCv for ; Sat, 27 Jul 2024 17:17:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46RHHY8o040701 for ; Sat, 27 Jul 2024 17:17:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46RHHXuG040695 for bugs@FreeBSD.org; Sat, 27 Jul 2024 17:17:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sat, 27 Jul 2024 17:17:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: des@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: des@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280371 Dag-Erling Sm=C3=B8rgrav 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=C3=B8rgrav --- 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 numb= er of lines in its inputs, and it consumes memory roughly equivalent to the su= m of the sizes of its input plus a nontrivial multiple of the total number of li= nes in its inputs. The best I can do is error out if the files are too large. --=20 You are receiving this mail because: You are the assignee for the bug.=