Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
84ec4b0d
Commit
84ec4b0d
authored
Aug 17, 2021
by
longpanda
Browse files
Support escaped quotes (\") in ventoy.json. (#1062)
parent
9615e7ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_json.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_json.c
+17
-0
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_json.c
View file @
84ec4b0d
...
@@ -152,6 +152,23 @@ static int vtoy_json_parse_string
...
@@ -152,6 +152,23 @@ static int vtoy_json_parse_string
return
JSON_FAILED
;
return
JSON_FAILED
;
}
}
if
(
*
(
pcPos
-
1
)
==
'\\'
)
{
for
(
pcPos
++
;
*
pcPos
;
pcPos
++
)
{
if
(
*
pcPos
==
'"'
&&
*
(
pcPos
-
1
)
!=
'\\'
)
{
break
;
}
}
if
(
*
pcPos
==
0
||
pcPos
<
pcTmp
)
{
json_debug
(
"Invalid quotes string %s."
,
pcData
);
return
JSON_FAILED
;
}
}
*
ppcEnd
=
pcPos
+
1
;
*
ppcEnd
=
pcPos
+
1
;
uiLen
=
(
grub_uint32_t
)(
unsigned
long
)(
pcPos
-
pcTmp
);
uiLen
=
(
grub_uint32_t
)(
unsigned
long
)(
pcPos
-
pcTmp
);
...
...
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