Thread (1 message) 1 message, 1 author, 2007-08-31

Re: libfdt: Fix use of uninitialized variable in fdt_get_path()

From: Jon Loeliger <hidden>
Date: 2007-08-31 13:38:02

So, like, the other day David Gibson mumbled:
My recent implemenetation of fdt_get_path() had a bug - the while loop
tested offset which was unitialized on the first iteration.  Depending
on code surrounding the call, this could cause fdt_get_path() to
return incorrect results.

This patch corrects the problem by applying some more correct thinking
to the loop condition.

Signed-off-by: David Gibson <redacted>
Applied.

Thanks,
jdl
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help