Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
279dbb9a
Commit
279dbb9a
authored
Feb 12, 2014
by
Johann
Committed by
Gerrit Code Review
Feb 12, 2014
Browse files
Merge "Skip COMDAT sections when parsing COFF"
parents
cf479baa
25eeac05
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/make/obj_int_extract.c
View file @
279dbb9a
...
...
@@ -666,7 +666,11 @@ int parse_coff(uint8_t *buf, size_t sz) {
}
strcpy
(
sectionlist
[
i
],
sectionname
);
if
(
!
strcmp
(
sectionname
,
".rdata"
))
sectionrawdata_ptr
=
get_le32
(
ptr
+
20
);
// check if it's .rdata and is not a COMDAT section.
if
(
!
strcmp
(
sectionname
,
".rdata"
)
&&
(
get_le32
(
ptr
+
36
)
&
0x1000
)
==
0
)
{
sectionrawdata_ptr
=
get_le32
(
ptr
+
20
);
}
ptr
+=
40
;
}
...
...
Write
Preview
Supports
Markdown
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