hammer_vop_nresolve() off-by-one?

Matthew Dillon dillon at apollo.backplane.com
Tue Apr 6 08:26:40 PDT 2010


:Hello,
:
:I was studying hammer_vop_nresolve() and in the loop for the @@
:expansion, there seems to be an off-by-one error. A filename ending in
:'@' would trigger the error. What do you think?
:
:Daniel

    It should be ok because namecache nc_name strings are zero-terminated.
    So a softlink ending in '@' will see a 0 for nc_name[i+1] for the
    case where i + 1 == nlen.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Hammer mailing list