[Sound-open-firmware] [PATCH] rimage: elf: validate module sections internally.

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Feb 21 18:26:28 CET 2018


Make sure we validate all module sections against each other.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 rimage/elf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/rimage/elf.c b/rimage/elf.c
index 672d6e3..3f00f1d 100644
--- a/rimage/elf.c
+++ b/rimage/elf.c
@@ -314,9 +314,6 @@ int elf_validate_section(struct image *image, struct module *module,
 	for (i = 0; i < image->num_modules; i++) {
 		m = &image->module[i];
 
-		if (m == module)
-			continue;
-
 		/* for each section */
 		for (j = 0; j < m->hdr.e_shnum; j++) {
 			s = &m->section[j];
-- 
2.14.1



More information about the Sound-open-firmware mailing list