Fixed the buffer overflow issue
Fixed the buffer overflow issue

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

luctrudeau/aom,iniwf/webm.libvpx,smarter/aom,liqianggao/libvpx,Suvarna1488/webm.libvpx,Suvarna1488/webm.libvpx,vasilvv/esvp8,hsueceumd/test_hui,n4t/libvpx,ittiamvpx/libvpx-1,lyx2014/libvpx_c,hsueceumd/test_hui,charup/https---github.com-webmproject-libvpx-,ShiftMediaProject/libvpx,Laknot/libvpx,abwiz0086/webm.libvpx,abwiz0086/webm.libvpx,iniwf/webm.libvpx,jmvalin/aom,webmproject/libvpx,ittiamvpx/libvpx-1,Distrotech/libvpx,kim42083/webm.libvpx,Suvarna1488/webm.libvpx,gshORTON/webm.libvpx,luctrudeau/aom,smarter/aom,matanbs/webm.libvpx,goodleixiao/vpx,running770/libvpx,GrokImageCompression/aom,mwgoldsmith/libvpx,mbebenita/aom,Laknot/libvpx,thdav/aom,sanyaade-teachings/libvpx,n4t/libvpx,stewnorriss/libvpx,mbebenita/aom,turbulenz/libvpx,reimaginemedia/webm.libvpx,jacklicn/webm.libvpx,Acidburn0zzz/webm.libvpx,jmvalin/aom,Maria1099/webm.libvpx,Distrotech/libvpx,sanyaade-teachings/libvpx,ittiamvpx/libvpx,liqianggao/libvpx,smarter/aom,openpeer/libvpx_new,zofuthan/libvpx,VTCSecureLLC/libvpx,sanyaade-teachings/libvpx,goodleixiao/vpx,jdm/libvpx,Laknot/libvpx,zofuthan/libvpx,jmvalin/aom,kim42083/webm.libvpx,shacklettbp/aom,mbebenita/aom,webmproject/libvpx,shyamalschandra/libvpx,turbulenz/libvpx,Topopiccione/libvpx,reimaginemedia/webm.libvpx,iniwf/webm.libvpx,openpeer/libvpx_new,charup/https---github.com-webmproject-libvpx-,kim42083/webm.libvpx,jdm/libvpx,cinema6/libvpx,stewnorriss/libvpx,gshORTON/webm.libvpx,lyx2014/libvpx_c,zofuthan/libvpx,openpeer/libvpx_new,cinema6/libvpx,turbulenz/libvpx,WebRTC-Labs/libvpx,mwgoldsmith/vpx,liqianggao/libvpx,VTCSecureLLC/libvpx,WebRTC-Labs/libvpx,jdm/libvpx,felipebetancur/libvpx,liqianggao/libvpx,luctrudeau/aom,kleopatra999/webm.libvpx,matanbs/vp982,altogother/webm.libvpx,shacklettbp/aom,turbulenz/libvpx,reimaginemedia/webm.libvpx,zofuthan/libvpx,matanbs/vp982,ittiamvpx/libvpx-1,kalli123/webm.libvpx,goodleixiao/vpx,charup/https---github.com-webmproject-libvpx-,ittiamvpx/libvpx,altogother/webm.libvpx,abwiz0086/webm.libvpx,matanbs/vp982,shacklettbp/aom,webmproject/libvpx,shyamalschandra/libvpx,vasilvv/esvp8,shacklettbp/aom,thdav/aom,GrokImageCompression/aom,Acidburn0zzz/webm.libvpx,luctrudeau/aom,mwgoldsmith/libvpx,thdav/aom,Laknot/libvpx,luctrudeau/aom,turbulenz/libvpx,charup/https---github.com-webmproject-libvpx-,shareefalis/libvpx,cinema6/libvpx,kleopatra999/webm.libvpx,Acidburn0zzz/webm.libvpx,openpeer/libvpx_new,matanbs/webm.libvpx,Suvarna1488/webm.libvpx,kalli123/webm.libvpx,gshORTON/webm.libvpx,running770/libvpx,abwiz0086/webm.libvpx,liqianggao/libvpx,liqianggao/libvpx,turbulenz/libvpx,thdav/aom,lyx2014/libvpx_c,thdav/aom,kleopatra999/webm.libvpx,shareefalis/libvpx,WebRTC-Labs/libvpx,GrokImageCompression/aom,pcwalton/libvpx,Laknot/libvpx,altogother/webm.libvpx,jdm/libvpx,openpeer/libvpx_new,hsueceumd/test_hui,mbebenita/aom,kleopatra999/webm.libvpx,webmproject/libvpx,thdav/aom,ittiamvpx/libvpx,matanbs/vp982,mwgoldsmith/vpx,reimaginemedia/webm.libvpx,Topopiccione/libvpx,kalli123/webm.libvpx,jacklicn/webm.libvpx,lyx2014/libvpx_c,iniwf/webm.libvpx,altogother/webm.libvpx,shareefalis/libvpx,shyamalschandra/libvpx,jacklicn/webm.libvpx,running770/libvpx,shyamalschandra/libvpx,matanbs/vp982,ShiftMediaProject/libvpx,abwiz0086/webm.libvpx,ShiftMediaProject/libvpx,running770/libvpx,mbebenita/aom,jacklicn/webm.libvpx,shareefalis/libvpx,abwiz0086/webm.libvpx,kim42083/webm.libvpx,kim42083/webm.libvpx,stewnorriss/libvpx,Acidburn0zzz/webm.libvpx,kim42083/webm.libvpx,Maria1099/webm.libvpx,stewnorriss/libvpx,smarter/aom,shareefalis/libvpx,ShiftMediaProject/libvpx,vasilvv/esvp8,turbulenz/libvpx,matanbs/webm.libvpx,felipebetancur/libvpx,jacklicn/webm.libvpx,Topopiccione/libvpx,pcwalton/libvpx,VTCSecureLLC/libvpx,turbulenz/libvpx,jacklicn/webm.libvpx,shacklettbp/aom,VTCSecureLLC/libvpx,kalli123/webm.libvpx,Distrotech/libvpx,iniwf/webm.libvpx,ittiamvpx/libvpx,sanyaade-teachings/libvpx,mwgoldsmith/vpx,n4t/libvpx,altogother/webm.libvpx,iniwf/webm.libvpx,VTCSecureLLC/libvpx,running770/libvpx,Distrotech/libvpx,ShiftMediaProject/libvpx,cinema6/libvpx,shacklettbp/aom,reimaginemedia/webm.libvpx,gshORTON/webm.libvpx,jmvalin/aom,felipebetancur/libvpx,kleopatra999/webm.libvpx,goodleixiao/vpx,mwgoldsmith/vpx,lyx2014/libvpx_c,mbebenita/aom,jdm/libvpx,webmproject/libvpx,Laknot/libvpx,hsueceumd/test_hui,pcwalton/libvpx,shyamalschandra/libvpx,gshORTON/webm.libvpx,Suvarna1488/webm.libvpx,Maria1099/webm.libvpx,kleopatra999/webm.libvpx,jdm/libvpx,Maria1099/webm.libvpx,mbebenita/aom,ittiamvpx/libvpx,Topopiccione/libvpx,running770/libvpx,vasilvv/esvp8,smarter/aom,GrokImageCompression/aom,ittiamvpx/libvpx,mwgoldsmith/libvpx,ittiamvpx/libvpx-1,jmvalin/aom,shareefalis/libvpx,mwgoldsmith/libvpx,luctrudeau/aom,zofuthan/libvpx,matanbs/vp982,kalli123/webm.libvpx,charup/https---github.com-webmproject-libvpx-,mbebenita/aom,stewnorriss/libvpx,mwgoldsmith/libvpx,hsueceumd/test_hui,Acidburn0zzz/webm.libvpx,felipebetancur/libvpx,Distrotech/libvpx,zofuthan/libvpx,matanbs/webm.libvpx,VTCSecureLLC/libvpx,kalli123/webm.libvpx,mwgoldsmith/libvpx,Acidburn0zzz/webm.libvpx,ittiamvpx/libvpx-1,altogother/webm.libvpx,Distrotech/libvpx,n4t/libvpx,jmvalin/aom,mwgoldsmith/vpx,Topopiccione/libvpx,vasilvv/esvp8,smarter/aom,felipebetancur/libvpx,pcwalton/libvpx,cinema6/libvpx,Maria1099/webm.libvpx,charup/https---github.com-webmproject-libvpx-,matanbs/webm.libvpx,pcwalton/libvpx,mbebenita/aom,GrokImageCompression/aom,goodleixiao/vpx,hsueceumd/test_hui,pcwalton/libvpx,openpeer/libvpx_new,Suvarna1488/webm.libvpx,mwgoldsmith/vpx,lyx2014/libvpx_c,vasilvv/esvp8,matanbs/webm.libvpx,GrokImageCompression/aom,Topopiccione/libvpx,gshORTON/webm.libvpx,sanyaade-teachings/libvpx,cinema6/libvpx,Maria1099/webm.libvpx,felipebetancur/libvpx,vasilvv/esvp8,shyamalschandra/libvpx,stewnorriss/libvpx,webmproject/libvpx,WebRTC-Labs/libvpx,ittiamvpx/libvpx-1,turbulenz/libvpx,reimaginemedia/webm.libvpx,n4t/libvpx,goodleixiao/vpx,matanbs/vp982,cinema6/libvpx,WebRTC-Labs/libvpx