udiavr / nativeclient-sdk

Automatically exported from code.google.com/p/nativeclient-sdk
0 stars 0 forks source link

Memory is being clobbered in tumbler sample #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Coding error is apparent by inspection. In cube.h, cube_vbos_ should be 
declared with array length 3, not 2. As it is, eye_ is being clobbered.

Look at cube.cc in the Cube::Draw() method. It references the array cube_vbos_ 
at positions 0, 1, and 2.

Original issue reported on code.google.com by gasbe...@gmail.com on 6 Sep 2010 at 6:35

GoogleCodeExporter commented 8 years ago
Nice catch.

CL http://codereview.chromium.org/3415009/show

Original comment by dsprin...@google.com on 16 Sep 2010 at 4:42