Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
704bd45d
Commit
704bd45d
authored
Feb 22, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Add additional tests with embedded NUL characters.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
294be8b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
regedit.c
programs/regedit/tests/regedit.c
+32
-2
No files found.
programs/regedit/tests/regedit.c
View file @
704bd45d
...
...
@@ -1649,7 +1649,7 @@ static void test_invalid_import(void)
"
\"
Wine33c
\"
=
\"
Value1
\\
0
\n
"
"
\"
Wine33d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\n
"
"
\"
Wine33e
\"
=
\"
Value3
\\
0Value4
\n
"
"
\"
Wine33f
\"
=
\"\\
0Value
4
\n\n
"
);
"
\"
Wine33f
\"
=
\"\\
0Value
5
\n\n
"
);
verify_reg_nonexist
(
hkey
,
"Wine33a"
);
verify_reg_nonexist
(
hkey
,
"Wine33b"
);
verify_reg_nonexist
(
hkey
,
"Wine33c"
);
...
...
@@ -1657,6 +1657,21 @@ static void test_invalid_import(void)
verify_reg_nonexist
(
hkey
,
"Wine33e"
);
verify_reg_nonexist
(
hkey
,
"Wine33f"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine34a
\"
=
\"\\
0
\"\n
"
"
\"
Wine34b
\"
=
\"\\
0
\\
0
\"\n
"
"
\"
Wine34c
\"
=
\"
Value1
\\
0
\"\n
"
"
\"
Wine34d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\"\n
"
"
\"
Wine34e
\"
=
\"
Value3
\\
0Value4
\"\n
"
"
\"
Wine34f
\"
=
\"\\
0Value5
\"\n\n
"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34b"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34c"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34d"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34e"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34f"
);
close_key
(
hkey
);
delete_key
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
@@ -2160,7 +2175,7 @@ static void test_invalid_import_unicode(void)
"
\"
Wine33c
\"
=
\"
Value1
\\
0
\n
"
"
\"
Wine33d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\n
"
"
\"
Wine33e
\"
=
\"
Value3
\\
0Value4
\n
"
"
\"
Wine33f
\"
=
\"\\
0Value
4
\n\n
"
);
"
\"
Wine33f
\"
=
\"\\
0Value
5
\n\n
"
);
verify_reg_nonexist
(
hkey
,
"Wine33a"
);
verify_reg_nonexist
(
hkey
,
"Wine33b"
);
verify_reg_nonexist
(
hkey
,
"Wine33c"
);
...
...
@@ -2168,6 +2183,21 @@ static void test_invalid_import_unicode(void)
verify_reg_nonexist
(
hkey
,
"Wine33e"
);
verify_reg_nonexist
(
hkey
,
"Wine33f"
);
exec_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine34a
\"
=
\"\\
0
\"\n
"
"
\"
Wine34b
\"
=
\"\\
0
\\
0
\"\n
"
"
\"
Wine34c
\"
=
\"
Value1
\\
0
\"\n
"
"
\"
Wine34d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\"\n
"
"
\"
Wine34e
\"
=
\"
Value3
\\
0Value4
\"\n
"
"
\"
Wine34f
\"
=
\"\\
0Value5
\"\n\n
"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34b"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34c"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34d"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34e"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine34f"
);
close_key
(
hkey
);
delete_key
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment