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

Michael Niedermayer michael at niedermayer.cc
Wed Jan 13 20:07:54 CET 2016


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

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160113/ed1ebc61/attachment.sig>


More information about the ffmpeg-devel mailing list