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
b8b7979f
Commit
b8b7979f
authored
Mar 12, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Stop parsing REG_SZ values containing NUL character sequences.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87717c9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
regproc.c
programs/regedit/regproc.c
+1
-2
regedit.c
programs/regedit/tests/regedit.c
+12
-12
No files found.
programs/regedit/regproc.c
View file @
b8b7979f
...
...
@@ -402,8 +402,7 @@ static BOOL REGPROC_unescape_string(WCHAR *str, WCHAR **unparsed)
str
[
val_idx
]
=
'\r'
;
break
;
case
'0'
:
str
[
val_idx
]
=
'\0'
;
break
;
return
FALSE
;
case
'\\'
:
case
'"'
:
str
[
val_idx
]
=
str
[
str_idx
];
...
...
programs/regedit/tests/regedit.c
View file @
b8b7979f
...
...
@@ -1694,12 +1694,12 @@ static void test_invalid_import(void)
"
\"
Wine33d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\"\n
"
"
\"
Wine33e
\"
=
\"
Value3
\\
0Value4
\"\n
"
"
\"
Wine33f
\"
=
\"\\
0Value5
\"\n\n
"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33b"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33c"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33d"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33e"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33f"
);
verify_reg_nonexist
(
hkey
,
"Wine33a"
);
verify_reg_nonexist
(
hkey
,
"Wine33b"
);
verify_reg_nonexist
(
hkey
,
"Wine33c"
);
verify_reg_nonexist
(
hkey
,
"Wine33d"
);
verify_reg_nonexist
(
hkey
,
"Wine33e"
);
verify_reg_nonexist
(
hkey
,
"Wine33f"
);
close_key
(
hkey
);
...
...
@@ -2205,12 +2205,12 @@ static void test_invalid_import_unicode(void)
"
\"
Wine33d
\"
=
\"
Value2
\\
0
\\
0
\\
0
\\
0
\"\n
"
"
\"
Wine33e
\"
=
\"
Value3
\\
0Value4
\"\n
"
"
\"
Wine33f
\"
=
\"\\
0Value5
\"\n\n
"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33b"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33c"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33d"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33e"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine33f"
);
verify_reg_nonexist
(
hkey
,
"Wine33a"
);
verify_reg_nonexist
(
hkey
,
"Wine33b"
);
verify_reg_nonexist
(
hkey
,
"Wine33c"
);
verify_reg_nonexist
(
hkey
,
"Wine33d"
);
verify_reg_nonexist
(
hkey
,
"Wine33e"
);
verify_reg_nonexist
(
hkey
,
"Wine33f"
);
close_key
(
hkey
);
...
...
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