DragonFly hammer List (threaded) for 2010-04
[
Date Prev][Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: hammer_vop_nresolve() off-by-one?
: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@backplane.com>
[
Date Prev][Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]