diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-01-13 00:52:58 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-01-28 01:50:35 +0100 |
commit | 873a0dfa26dfeda29f5f7539ffd1cd563ce5437c (patch) | |
tree | 6f0033976e04a63fd6868c5a11c7d7e9b7cb7097 /libavcodec/snowenc.c | |
parent | f2fd5b9eb2677eddfe6c9be6b2235390476cfce6 (diff) | |
download | ffmpeg-873a0dfa26dfeda29f5f7539ffd1cd563ce5437c.tar.gz |
dca: fix misaligned access in avpriv_dca_convert_bitstream
src and dst are only 8-bit-aligned, so accessing them as uint16_t causes
SIGBUS crashes on architectures like sparc.
This fixes ubsan runtime error: load of misaligned address for type
'const uint16_t', which requires 2 byte alignment
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 44ac13eed49593f4f8efdb72ab0d5b48e05aa305)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/snowenc.c')
0 files changed, 0 insertions, 0 deletions