neoragex2015 / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Array indexing bug #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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