diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2015-06-15 12:21:54 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2015-06-15 12:21:54 +0200 |
commit | 2740fc8aeb78bb2e012f63f6d500f3133139c504 (patch) | |
tree | 8ca60d43df8122ece7421b4602ca71e17cebc214 /target/apq8084 | |
parent | 24cb33b3db445534d2049dcc9b1753c0afa781fb (diff) |
app: aboot: fix incorrect check for integer overflowubuntu-qcom-dragonboard410c-LA.BR.1.2.4-00310-8x16.0-linaro1debian-qcom-dragonboard410c-LA.BR.1.2.4-00310-8x16.0-linaro1
When we encounter a large DONTCARE chunk, the integer overflow check that was
implemented in commit 14cff317 will report a false failure.
For example, the following chunk header was observed:
[58840] === Chunk Header ===
[58840] chunk_type: 0xcac3
[58850] chunk_data_sz: 0x198ffe
[58850] total_size: 0xc
which is valid, but reported as:
"Bogus size sparse and chunk header"
The check for the 32-bit overflow when computing the actual chunk size should be
done only for RAW chunk, instead.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'target/apq8084')
0 files changed, 0 insertions, 0 deletions