Skip to content

Commit 99003dc

Browse files
authored
[CORE] Prevent using uninitialized memory 'name' in RenderObjPersistFactoryClass::Load() (#1145)
1 parent d1a8d65 commit 99003dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Core/Libraries/Source/WWVegas/WW3D2/rendobj.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ PersistClass * RenderObjPersistFactoryClass::Load(ChunkLoadClass & cload) const
12211221
RenderObjClass * old_obj = NULL;
12221222
Matrix3D tm(1);
12231223
char name[64];
1224+
name[0] = '\0';
12241225

12251226
while (cload.Open_Chunk()) {
12261227
switch (cload.Cur_Chunk_ID()) {

0 commit comments

Comments
 (0)