diff options
author | Mans Rullgard <mans@mansr.com> | 2011-10-08 02:16:29 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-03-18 17:50:48 +0100 |
commit | 73ad066939bc435ba2cc47071a9dc617f8a9dda4 (patch) | |
tree | f1e7d33d0992bb9d5a85514d4aa03dde74b85aaa /libavcodec/atrac3data.h | |
parent | 1cc0b0863572cc4339ff38b04f48b13ec64062a2 (diff) | |
download | ffmpeg-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/atrac3data.h')
0 files changed, 0 insertions, 0 deletions