• Jingning Han's avatar
    Fixed the buffer overflow issue · 936aa281
    Jingning Han authored
    The issue that potentially broke the encoding process was due to the fact
    that the length of token link is calculated from the total number of tokens
    coded, while it is possible, in high bit-rate setting, this length is
    greater than the buffer length initially assigned to the cpi->tok.
    
    This patch increases the initially allocated buffer length assigned to
    cpi->tok from
    (mb_rows * mb_cols * 24 * 16) to (mb_rows * mb_cols * (1 + 24 * 16)).
    
    It resolves the buffer overflow problem.
    
    Change-Id: I8661a8d39ea0a3c24303e3f71a170787a1d5b1df
    936aa281
vp9_onyx_if.c 136 KB