Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2024 22:13:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 127912] In theory, uncompress(1) may crash and SEGV
Message-ID:  <bug-127912-227-dm7ukayORF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-127912-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-127912-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D127912

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D7e229794ca37d25265b0472bce26e8fd2=
b9bee2c

commit 7e229794ca37d25265b0472bce26e8fd2b9bee2c
Author:     David Jones <drj@ravenbrook.com>
AuthorDate: 2024-10-11 15:49:17 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-10-11 22:12:41 +0000

    uncompress: Avoid reading an extra byte

    When reading the next code in a stream, avoid reading an extra byte if
    we're going to throw it away. When there's no more bits to extract from
    the stream, bits will be 0 and we'll mask the read byte with 0 anyway.
    At worst, this will avoid reading one past the end of gbuf array (which
    is not possible in well formed streams).

    PR: 127912
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D47041

    (cherry picked from commit 818c7b769a4f7d3c8fecc4cf491f4e22ef816eba)

 usr.bin/compress/zopen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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



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