[FFmpeg-devel] [PATCH 2/3] ffmdec: cast state to unsigned for left shift

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jan 2 20:05:02 CET 2016


On 02.01.2016 18:59, Michael Niedermayer wrote:
> On Sat, Jan 02, 2016 at 05:12:13PM +0100, Andreas Cadhalpun wrote:
>>  ffmdec.c |    5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>> 6c3ca0f947737208725d30a735deaea2a95531ba  0002-ffmdec-change-type-of-state-and-id-to-unsigned.patch
>> From a461d6e867aa0b4be7c673d69f1318eff9ffa4d5 Mon Sep 17 00:00:00 2001
>> From: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> Date: Sat, 2 Jan 2016 16:27:43 +0100
>> Subject: [PATCH 2/3] ffmdec: change type of state and id to unsigned
>>
>> This fixes ubsan runtime error: left shift by 8 places cannot be
>> represented in type 'int'
>>
>> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> 
> LGTM

Pushed.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list