aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-10-08 02:16:29 +0100
committerReinhard Tartler <siretart@tauware.de>2012-03-18 17:50:48 +0100
commit73ad066939bc435ba2cc47071a9dc617f8a9dda4 (patch)
treef1e7d33d0992bb9d5a85514d4aa03dde74b85aaa /libavcodec/x86
parent1cc0b0863572cc4339ff38b04f48b13ec64062a2 (diff)
downloadffmpeg-73ad066939bc435ba2cc47071a9dc617f8a9dda4.tar.gz
intfloat_readwrite: fix signed addition overflows
These additions might overflow the signed range for large input values. Converting to unsigned before the addition rather than after avoids such undefined behaviour. The result under normal two's complement wraparound remains unchanged. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 88d1e2b2b0a129365a62efd666db0394e8ffbe08) Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/x86')
0 files changed, 0 insertions, 0 deletions