ubifs query
pavi1729
pavitra1729 at gmail.com
Mon Jan 11 07:07:22 PST 2016
Hi,
I was looking at 'ubifs_lookup_level0' which is calling 'tnc_prev' function.
LINK: http://lxr.free-electrons.com/source/fs/ubifs/tnc.c?v=3.10#L1267
FUNCTION: tnc_prev
'tnc_prev' could return a negative 'n' if znode->iip is 0.
LINK: http://lxr.free-electrons.com/source/fs/ubifs/tnc.c?v=3.10#L670
nn = znode->iip - 1;
If n is negative then below code will do a negative indexing since
this is the next line
if (keys_cmp(c, key, &znode->zbranch[*n].key)) {
LINK: http://lxr.free-electrons.com/source/fs/ubifs/tnc.c?v=3.10#L1275
Is this a possibility ?
Cheers,
Pavi
More information about the linux-mtd
mailing list