Buffer size bug in LocateDebugInfoFile.
This commit is contained in:
parent
7d0e449f1f
commit
006efb357f
|
@ -48,13 +48,13 @@ static void LocateDebugInfoFile(char *filename, char *dbg_filename)
|
||||||
file = strrchr(filename, '\\');
|
file = strrchr(filename, '\\');
|
||||||
if( file == NULL ) file = filename; else file++;
|
if( file == NULL ) file = filename; else file++;
|
||||||
|
|
||||||
if (GetEnvironmentVariableA("_NT_SYMBOL_PATH", str1, sizeof(str1)))
|
if (GetEnvironmentVariableA("_NT_SYMBOL_PATH", str1, MAX_PATHNAME_LEN))
|
||||||
if (SearchPathA(str1, file, NULL, sizeof(str2), str2, &name_part))
|
if (SearchPathA(str1, file, NULL, MAX_PATHNAME_LEN*10, str2, &name_part))
|
||||||
goto ok;
|
goto ok;
|
||||||
if (GetEnvironmentVariableA("_NT_ALT_SYMBOL_PATH", str1, sizeof(str1)))
|
if (GetEnvironmentVariableA("_NT_ALT_SYMBOL_PATH", str1, MAX_PATHNAME_LEN))
|
||||||
if (SearchPathA(str1, file, NULL, sizeof(str2), str2, &name_part))
|
if (SearchPathA(str1, file, NULL, MAX_PATHNAME_LEN*10, str2, &name_part))
|
||||||
goto ok;
|
goto ok;
|
||||||
if (SearchPathA(NULL, file, NULL, sizeof(str2), str2, &name_part))
|
if (SearchPathA(NULL, file, NULL, MAX_PATHNAME_LEN*10, str2, &name_part))
|
||||||
goto ok;
|
goto ok;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue