Page MenuHomeFreeBSD

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

Authored by tsoome on Feb 16 2019, 6:12 PM.



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

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tsoome created this revision.Feb 16 2019, 6:12 PM
allanjude accepted this revision.Feb 16 2019, 7:19 PM
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.