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

!12401 drivers: media: dvb-frontends/rtl2832: fix an out-of-bounds write error

parents 5709a9aa a7a7f463
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -982,7 +982,7 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 index, u16 pid,
		index, pid, onoff, dev->slave_ts);

	/* skip invalid PIDs (0x2000) */
	if (pid > 0x1fff || index > 32)
	if (pid > 0x1fff || index >= 32)
		return 0;

	if (onoff)