Unverified Commit e44cc18d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15184 binfmt_flat: Fix integer overflow bug on 32 bit systems

parents 7925d525 04d0fed1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -478,7 +478,7 @@ static int load_flat_file(struct linux_binprm *bprm,
	 * 28 bits (256 MB) is way more than reasonable in this case.
	 * If some top bits are set we have probable binary corruption.
	*/
	if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) {
	if ((text_len | data_len | bss_len | stack_len | relocs | full_data) >> 28) {
		pr_err("bad header\n");
		ret = -ENOEXEC;
		goto err;