Page MenuHomeFreeBSD

net/samba416: Patch for abnormal abort on 14.0 i386
ClosedPublic

Authored by jrm on Dec 24 2023, 3:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 4:56 PM
Unknown Object (File)
Sun, Apr 5, 9:30 AM
Unknown Object (File)
Sat, Apr 4, 4:48 PM
Unknown Object (File)
Sun, Mar 29, 9:14 AM
Unknown Object (File)
Fri, Mar 27, 7:26 PM
Unknown Object (File)
Mon, Mar 23, 1:55 AM
Unknown Object (File)
Wed, Mar 18, 10:37 AM
Unknown Object (File)
Wed, Mar 18, 12:08 AM

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 55100
Build 51989: arc lint + arc unit

Event Timeline

jrm requested review of this revision.Dec 24 2023, 3:10 PM
jrm created this revision.

Add missing path when adding to EXTRA_PATCHES

This bug affects all platforms, not just i386. I think it is actually a bug in Samba.

As noted later in PR: 275597, the problem is that result+sizeof(struct dirent) might be in unmapped memory. It seems that readdir() only guarantees that memory up to result+result->d_reclen is readable.

Apply patch to all platforms

memcpy() d_reclen bytes rather than setting each field

This revision was not accepted when it landed; it landed in state Needs Review.Feb 11 2024, 4:24 AM
This revision was automatically updated to reflect the committed changes.