mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-12 08:08:06 +00:00
game: fixed a format string vulnerability in CDebugOverlay::Paint (ValveSoftware/source-sdk-2013#372)
This commit is contained in:
parent
387d15521a
commit
42b528dec3
@ -129,7 +129,7 @@ void CDebugOverlay::Paint()
|
|||||||
{
|
{
|
||||||
float xPos = screenPos[0];
|
float xPos = screenPos[0];
|
||||||
float yPos = screenPos[1]+ (pCurrText->lineOffset*13); // Line spacing;
|
float yPos = screenPos[1]+ (pCurrText->lineOffset*13); // Line spacing;
|
||||||
g_pMatSystemSurface->DrawColoredText( m_hFont, xPos, yPos, r, g, b, a, pCurrText->text );
|
g_pMatSystemSurface->DrawColoredText( m_hFont, xPos, yPos, r, g, b, a, "%s", pCurrText->text );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -138,7 +138,7 @@ void CDebugOverlay::Paint()
|
|||||||
{
|
{
|
||||||
float xPos = screenPos[0];
|
float xPos = screenPos[0];
|
||||||
float yPos = screenPos[1]+ (pCurrText->lineOffset*13); // Line spacing;
|
float yPos = screenPos[1]+ (pCurrText->lineOffset*13); // Line spacing;
|
||||||
g_pMatSystemSurface->DrawColoredText( m_hFont, xPos, yPos, r, g, b, a, pCurrText->text );
|
g_pMatSystemSurface->DrawColoredText( m_hFont, xPos, yPos, r, g, b, a, "%s", pCurrText->text );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user