Added clamp of qindex to valid range
Added clamp of qindex to valid range

The qindex for a segment was not clamped in ABSDATA mode, which may
cause invalid memory access if an ill-formed stream has a negative
value in ABSDATA mode. This commit added clamp to make sure qindex
for a segment always fall into valid range.

Change-Id: I0a74d00f4ef40aec7edaeca1d03c8645e23ab08c

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