Unverified Commit 762816c3 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents e8c2300b 5f99bb93
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3053,6 +3053,10 @@ static int elf_validity_check(struct load_info *info)
	 * strings in the section safe.
	 */
	info->secstrings = (void *)info->hdr + strhdr->sh_offset;
	if (strhdr->sh_size == 0) {
		pr_err("empty section name table\n");
		return -ENOEXEC;
	}
	if (info->secstrings[strhdr->sh_size - 1] != '\0')
		return -ENOEXEC;