Page MenuHomeFreeBSD

cd9660: dirmatch fails to unmatch when name is prefix for directory record
ClosedPublic

Authored by tsoome on Feb 16 2019, 6:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 11:18 PM
Unknown Object (File)
Dec 30 2023, 4:23 AM
Unknown Object (File)
Dec 22 2023, 10:49 PM
Unknown Object (File)
Nov 23 2023, 11:29 AM
Unknown Object (File)
Sep 30 2023, 1:56 AM
Unknown Object (File)
Aug 9 2023, 12:33 AM
Unknown Object (File)
Jul 21 2023, 8:18 PM
Unknown Object (File)
Jul 8 2023, 2:25 PM
Subscribers

Details

Summary

Loader does fail to properly match the file name in directory record and
does open file based on prefix match.

For fix, we check the name lengths first.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

allanjude added a subscriber: allanjude.

Seems like a good fix, and even an optimization.

This revision is now accepted and ready to land.Feb 16 2019, 7:19 PM
This revision was automatically updated to reflect the committed changes.