[FFmpeg-devel] [PATCH] dca: fix misaligned access in avpriv_dca_convert_bitstream

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Thu Jan 14 01:25:54 CET 2016


On 13.01.2016 20:07, Michael Niedermayer wrote:
> On Wed, Jan 13, 2016 at 12:56:39AM +0100, Andreas Cadhalpun wrote:
>> 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
>>
>> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> ---
>>  libavcodec/dca.c | 9 +++++----
>>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> LGTM

Pushed.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list