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
2185556d
"vscode:/vscode.git/clone" did not exist on "80407b0493846dc498a51ae110ced4f53344bb37"
Unverified
Commit
2185556d
authored
Feb 06, 2021
by
longpanda
Committed by
GitHub
Feb 06, 2021
Browse files
fix integer overflow issue for i386-pc
parent
97be7b8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
+1
-1
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
View file @
2185556d
...
...
@@ -553,7 +553,7 @@ static grub_err_t ventoy_cmd_mod(grub_extcmd_context_t ctxt, int argc, char **ar
value1
=
grub_strtoull
(
args
[
0
],
NULL
,
10
);
value2
=
grub_strtoull
(
args
[
1
],
NULL
,
10
);
grub_snprintf
(
buf
,
sizeof
(
buf
),
"%llu"
,
(
value1
%
value2
));
grub_snprintf
(
buf
,
sizeof
(
buf
),
"%llu"
,
(
value1
&
(
value2
-
1
)
));
grub_env_set
(
args
[
2
],
buf
);
VENTOY_CMD_RETURN
(
GRUB_ERR_NONE
);
...
...
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