1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0023277: Buffer underflow using memset in osd_path.cxx

The parameter used in memset matches the buffer size.
This commit is contained in:
Pawel 2012-07-13 15:40:22 +02:00 committed by Pawel Kowalski
parent 9d21a648c8
commit d015d21804

View File

@ -1052,10 +1052,10 @@ OSD_Path :: OSD_Path (
static char __ext [ _MAX_EXT ];
memset(__drive, 0,_MAX_DRIVE);
memset(__dir, 0,_MAX_DRIVE);
memset(__trek, 0,_MAX_DRIVE);
memset(__fname, 0,_MAX_DRIVE);
memset(__ext, 0,_MAX_DRIVE);
memset(__dir, 0,_MAX_DIR);
memset(__trek, 0,_MAX_DIR);
memset(__fname, 0,_MAX_FNAME);
memset(__ext, 0,_MAX_EXT);
Standard_Character chr;
TEST_RAISE( aSysType, TEXT( "OSD_Path" ) );