mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023278: Buffer underflow using memset in osd_host.cxx
Zero memory uses the size of the array.
This commit is contained in:
parent
0564092bc9
commit
8ec3edb0c5
@ -258,7 +258,7 @@ OSD_Host :: OSD_Host () {
|
||||
nSize = MAX_COMPUTERNAME_LENGTH + 1;
|
||||
osVerInfo.dwOSVersionInfoSize = sizeof ( OSVERSIONINFO );
|
||||
|
||||
ZeroMemory ( szHostName, sizeof ( hostName ) );
|
||||
ZeroMemory ( szHostName, sizeof ( Standard_Character ) * (MAX_COMPUTERNAME_LENGTH + 1) );
|
||||
|
||||
if ( !GetVersionEx ( &osVerInfo ) ) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user