aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2020-05-15 01:36:08 +0530
committerGerd Hoffmann <kraxel@redhat.com>2020-05-25 11:30:03 +0200
commit369ff955a8497988d079c4e3fa1e93c2570c1c69 (patch)
treea02079395fdc2abbbc3caf94645e902ea31c9153 /configure
parentfea8f3ed739536fca027cf56af7f5576f37ef9cd (diff)
downloadqemu-369ff955a8497988d079c4e3fa1e93c2570c1c69.zip
qemu-369ff955a8497988d079c4e3fa1e93c2570c1c69.tar.gz
qemu-369ff955a8497988d079c4e3fa1e93c2570c1c69.tar.bz2
es1370: check total frame count against current frame
A guest user may set channel frame count via es1370_write() such that, in es1370_transfer_audio(), total frame count 'size' is lesser than the number of frames that are processed 'cnt'. int cnt = d->frame_cnt >> 16; int size = d->frame_cnt & 0xffff; if (size < cnt), it results in incorrect calculations leading to OOB access issue(s). Add check to avoid it. Reported-by: Ren Ding <rding@gatech.edu> Reported-by: Hanqing Zhao <hanqing@gatech.edu> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-id: 20200514200608.1744203-1-ppandit@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions