mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
reg/tests: Test for integer overflow.
This commit is contained in:
parent
17a24679b4
commit
c15e87cec4
@ -287,6 +287,9 @@ static void test_add(void)
|
||||
run_reg_exe("reg add HKCU\\" KEY_BASE " /t REG_DWORD /v dword10 /f /d -0x1", &r);
|
||||
todo_wine ok(r == REG_EXIT_FAILURE || broken(r == REG_EXIT_SUCCESS /* WinXP */), "got exit code %u\n", r);
|
||||
|
||||
run_reg_exe("reg add HKCU\\" KEY_BASE " /v dword8 /t REG_dword /d 0x01ffffffff /f", &r);
|
||||
todo_wine ok(r == REG_EXIT_FAILURE || broken(r == REG_EXIT_SUCCESS /* WinXP */), "got exit code %d\n", r);
|
||||
|
||||
/* REG_DWORD_LITTLE_ENDIAN */
|
||||
run_reg_exe("reg add HKCU\\" KEY_BASE " /v DWORD_LE /t REG_DWORD_LITTLE_ENDIAN /d 456 /f", &r);
|
||||
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
|
||||
|
Loading…
Reference in New Issue
Block a user