diff options
author | Tomáš Golembiovský <tgolembi@redhat.com> | 2016-11-03 14:47:48 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-11-11 15:54:55 +0100 |
commit | 40332872fec584d2557ed2c3f48d55d15d95eddb (patch) | |
tree | 56c4fbddfd90ab3204da16d10acfcb3162cbaf52 /CODING_STYLE | |
parent | 11d6fbe05fd67610a7735e5350e4299f93bf7655 (diff) | |
download | qemu-40332872fec584d2557ed2c3f48d55d15d95eddb.tar.gz qemu-40332872fec584d2557ed2c3f48d55d15d95eddb.tar.bz2 qemu-40332872fec584d2557ed2c3f48d55d15d95eddb.zip |
raw_bsd: move check to prevent overflow
When only offset is specified but no size and the offset is greater than
the real size of the containing device an overflow occurs when parsing
the options. This overflow is harmless because we do check for this
exact situation little bit later, but it leads to an error message with
weird values. It is better to do the check is sooner and prevent the
overflow.
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'CODING_STYLE')
0 files changed, 0 insertions, 0 deletions