carl9170: fix out of bounds read
authorChristian Lamparter <chunkeey@googlemail.com>
Tue, 15 Jan 2013 21:31:15 +0000 (22:31 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Tue, 15 Jan 2013 21:31:15 +0000 (22:31 +0100)
commit350a051244596eff40413bee70259db12bd4d4f6
tree68794328a9ed0f2e5bb211e9180fd5964af453cc
parent058f9461c8e84851f7d8207e792fa1285377e85a
carl9170: fix out of bounds read

__carlfw_find_desc didn't check whenever the area for
a descriptor was within the file length. Also it could
read beyond the file while looking for a said descriptor.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
tools/lib/carlfw.c