• Mans Rullgard's avatar
    amrwbdec: fix invalid pointer arithmetic · 50be2077
    Mans Rullgard authored
    Subtracting a (positive) value from the address of an array violates
    C99 section 6.5.6:
    
      If both the pointer operand and the result point to elements of the
      same array object, or one past the last element of the array object,
      the evaluation shall not produce an overflow; otherwise, the
      behavior is undefined.
    Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
    50be2077
amrwbdec.c 45.6 KB