[FFmpeg-devel] [PATCH] [RFC] avcodec/h264_slice: Duplicate addition to avoid ubsan warning

Michael Niedermayer michaelni at gmx.at
Wed Dec 9 15:32:48 CET 2015

On Wed, Dec 09, 2015 at 03:17:26PM +0100, Carl Eugen Hoyos wrote:
> On Wednesday 09 December 2015 02:08:06 am Michael Niedermayer wrote:
> > From: Michael Niedermayer <michael at niedermayer.cc>
> >
> > Fixes mozilla bug 1230247
> Does this make the code slower and works around a bug in ubsan?

i would guess it does or could make the code slower

i do not know for sure if this is a bug in ubsan or actually undefined,
i was hoping some language lawyer could clarify that

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- 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/20151209/24e87482/attachment.sig>

More information about the ffmpeg-devel mailing list