• 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: default avatarMans Rullgard <mans@mansr.com>
    50be2077