]> xenbits.xensource.com Git - qemu-xen.git/commit
vmdk: Widen before shifting 32 bit header field
authorFam Zheng <famz@redhat.com>
Mon, 27 Apr 2015 14:23:01 +0000 (22:23 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:11 +0000 (15:36 +0200)
commit7237aecd7e8fcc3ccf7fded77b6c127b4df5d3ac
tree9a2cfb0a3d9aca8575f2d190a22fca89142e1b7d
parent5505e8b76f86f925c35ecc2b2d311886bb36534c
vmdk: Widen before shifting 32 bit header field

Coverity spotted this.

The field is 32 bits, but if it's possible to overflow in 32 bit
left shift.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c