1
0

Merging r6551 through r6553 from branch releases/1.8 to trunk

All about bounds checks and preventing buffer overruns in b3d and obj files based on sfan5 patches for Minetest


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6554 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2023-10-03 15:08:40 +00:00
parent b93dac3ee1
commit b6e9202272
4 changed files with 31 additions and 10 deletions

View File

@@ -12,6 +12,7 @@
#define SB3DSTRUCTS_H
#include "SMaterial.h"
#include "irrMath.h"
namespace irr {
namespace scene {
@@ -27,6 +28,7 @@ struct SB3dChunk
SB3dChunk(const SB3dChunkHeader& header, long sp)
: length(header.size+8), startposition(sp)
{
length = core::max_(length, 8);
name[0]=header.name[0];
name[1]=header.name[1];
name[2]=header.name[2];