#8 Buffer overflow (1 byte) in ObjectMeshLoader ?

v1.0 (example)
open
nobody
None
5
2014-04-24
2014-03-22
JFRegnault
No

In file "BinFormat.h", definition of "struct ObjPolygon" indicates 1 byte for :
int8_t data

But in file "ManualBinFileLoader.cpp", the function "ObjectMeshLoader::loadPolygons()" reads 2 bytes from the stream for this field :
mFile->readElem(&op.data, 2);

Maybe the 2nd byte is immediately overriden when reading next field "type", then we'd lose the 2nd byte for "data" field ?

Discussion