ycwn/nvidia-texture-tools

Array indexing bug

Opened this issue · 0 comments

avpcl_mode4.cpp, function sign_extend()

nbitsizes[2] and nbitsizes[3] oversteps the allocated array, which has a size 
of 2 (NBITSIZES = 2)


Same problem exists in avpcl_mode5.cpp

Also, each one of these mode functions has an unused variable 'mode' in the 
function read_header()

Original issue reported on code.google.com by sol...@gmail.com on 7 Aug 2012 at 10:15