Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0973898b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: ping: Fix stack buffer overflow in ping_common_sendmsg()"

parents 9f666f38 585e5e47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -656,7 +656,7 @@ int ping_common_sendmsg(int family, struct msghdr *msg, size_t len,
			void *user_icmph, size_t icmph_len) {
	u8 type, code;

	if (len > 0xFFFF)
	if (len > 0xFFFF || len < icmph_len)
		return -EMSGSIZE;

	/*