mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-06 00:56:35 -05:00
Fix Off-By-One Stack Buffer Overflows in XML Parser (#1717)
* Off-By-One Null Byte Fix * Add XML parser tests and improve XmlGetAttributeText handling * Refactor XML testing: integrate XmlTest into AutoTestAlgorithms, add sentinel test for XmlGetNodeText insuficient output size. * Remove no-op Tests.c change --------- Co-authored-by: Mounir IDRASSI <mounir.idrassi@amcrypto.jp>
This commit is contained in:
1 parent
9934f01d3d
commit
504c94f12c
3 files changed
+105
-11
No files matched your search
@@ -7705,8 +7705,14 @@ CipherTestDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
if (lw == IDC_AUTO)
|
||||
{
|
||||
BOOL testsPassed;
|
||||
WaitCursor ();
|
||||
if (!AutoTestAlgorithms())
|
||||
testsPassed = AutoTestAlgorithms();
|
||||
#if !defined(TC_WINDOWS_DRIVER) && !defined(_UEFI)
|
||||
if (testsPassed && !XmlTest())
|
||||
testsPassed = FALSE;
|
||||
#endif
|
||||
if (!testsPassed)
|
||||
{
|
||||
ShowWindow(GetDlgItem(hwndDlg, IDC_TESTS_MESSAGE), SW_SHOWNORMAL);
|
||||
SetWindowTextW(GetDlgItem(hwndDlg, IDC_TESTS_MESSAGE), GetString ("TESTS_FAILED"));
|
||||
|
||||
Reference in new issue
Block a user