mirror of https://github.com/thesofproject/sof.git
rimage: elf: validate module sections internally.
Make sure we validate all module sections against each other. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
7c0557faae
commit
f09ce2a6a0
|
@ -314,9 +314,6 @@ int elf_validate_section(struct image *image, struct module *module,
|
||||||
for (i = 0; i < image->num_modules; i++) {
|
for (i = 0; i < image->num_modules; i++) {
|
||||||
m = &image->module[i];
|
m = &image->module[i];
|
||||||
|
|
||||||
if (m == module)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
/* for each section */
|
/* for each section */
|
||||||
for (j = 0; j < m->hdr.e_shnum; j++) {
|
for (j = 0; j < m->hdr.e_shnum; j++) {
|
||||||
s = &m->section[j];
|
s = &m->section[j];
|
||||||
|
|
Loading…
Reference in New Issue