aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2013-09-03 04:02:53 +0100
committerMister Oyster <oysterized@gmail.com>2017-04-11 11:00:15 +0200
commit4a0701698d0128b64a8e149a516d034c232520fb (patch)
tree40e2d4f7fce8327e3264f7716a5b2675f49586c3 /scripts
parent9a0df35da1db4f1dadd2347332dd2e894b21a0b6 (diff)
Squashfs: fix corruption check in get_dir_index_using_name()
Patch "Squashfs: sanity check information from disk" from Dan Carpenter adds a missing check for corruption in the "size" field while reading the directory index from disk. It, however, sets err to -EINVAL, this value is not used later, and so setting it is completely redundant. So remove it. Errors in reading the index are deliberately non-fatal. If we get an error in reading the index we just return the part of the index we have managed to read - the index isn't essential, just quicker. Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk> Change-Id: I846f6cccb98ff0f5d576983214ff964507f4376a
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions