diff options
author | Mans Rullgard <[email protected]> | 2011-10-08 02:16:29 +0100 |
---|---|---|
committer | Reinhard Tartler <[email protected]> | 2012-03-18 17:50:48 +0100 |
commit | 73ad066939bc435ba2cc47071a9dc617f8a9dda4 (patch) | |
tree | f1e7d33d0992bb9d5a85514d4aa03dde74b85aaa /libavcodec/bink.c | |
parent | 1cc0b0863572cc4339ff38b04f48b13ec64062a2 (diff) |
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 <[email protected]>
(cherry picked from commit 88d1e2b2b0a129365a62efd666db0394e8ffbe08)
Signed-off-by: Anton Khirnov <[email protected]>
Diffstat (limited to 'libavcodec/bink.c')
0 files changed, 0 insertions, 0 deletions