Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-grub2
Commits
95acd4cb
Commit
95acd4cb
authored
Aug 30, 2017
by
Vladimir Serbinenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gzio: fix unaligned access
parent
4f31bfe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
grub-core/io/gzio.c
grub-core/io/gzio.c
+1
-1
No files found.
grub-core/io/gzio.c
View file @
95acd4cb
...
...
@@ -1116,7 +1116,7 @@ inflate_window (grub_gzio_t gzio)
grub_uint32_t
csum
;
gzio
->
hdesc
->
final
(
gzio
->
hcontext
);
csum
=
*
(
grub_
uint32_t
*
)
gzio
->
hdesc
->
read
(
gzio
->
hcontext
);
csum
=
grub_
get_unaligned32
(
gzio
->
hdesc
->
read
(
gzio
->
hcontext
)
)
;
csum
=
grub_be_to_cpu32
(
csum
);
if
(
csum
!=
gzio
->
orig_checksum
)
grub_error
(
GRUB_ERR_BAD_COMPRESSED_DATA
,
...
...
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