• Janne Grunau's avatar
    golomb: use unsigned arithmetics in svq3_get_ue_golomb() · 9a2e7911
    Janne Grunau authored
    This prevents undefined behaviour of signed left shift if the coded
    value is larger than 2^31. Large values are most likely invalid and
    caused errors or by feeding random.
    
    Validate every use of svq3_get_ue_golomb() and changed the place there
    the return value was compared with negative numbers. dirac.c was clean,
    fixed rv30 and svq3.
    9a2e7911
golomb.h 12.8 KB