]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cd9660: dirmatch fails to unmatch when name is prefix for directory record
authortsoome <tsoome@FreeBSD.org>
Mon, 18 Feb 2019 08:26:18 +0000 (08:26 +0000)
committertsoome <tsoome@FreeBSD.org>
Mon, 18 Feb 2019 08:26:18 +0000 (08:26 +0000)
commitcdb7673abfefda182ace24a3abd1a04d1a16dd79
tree0de828e962f779dd52dd18b9e57d15b39abe44f5
parentbd09fc364413fcfe6444a701522d854c8da719ae
cd9660: dirmatch fails to unmatch when name is prefix for directory record

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.

Reviewed by: allanjude
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D19213
stand/libsa/cd9660.c