NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.35k stars 274 forks source link

array subscript below bounds #16

Closed dschmid2 closed 5 years ago

dschmid2 commented 7 years ago

./../../GeomUtils/src/mesh/GuBV4.cpp: In member function ‘void physx::Gu::SourceMesh::remapTopology(const physx::PxU32*)’: ./../../GeomUtils/src/mesh/GuBV4.cpp:84: error: array subscript is below array bounds [-Warray-bounds]

found on: gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]

dschmid2 commented 7 years ago

it seems this is a gcc issue and has been fixed on gcc 4.4 ! is there another way to write it, though?

sschirm commented 7 years ago

Could you post the line the error was on? In our current version line 84 is DELETEARRAY(newTopo);

amoravanszky commented 5 years ago

Closing until we get a clarification on this.