* re: V4L/DVB (3692): Keep experimental SLICED_VBI defines under an #if 0
@ 2016-02-27 10:52 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2016-02-27 10:52 UTC (permalink / raw)
To: hverkuil; +Cc: linux-media
Hello Hans Verkuil,
The patch 9bc7400a9d01: "V4L/DVB (3692): Keep experimental SLICED_VBI
defines under an #if 0" from Mar 29, 2006, leads to the following
static checker warning:
drivers/media/i2c/tvp5150.c:719 tvp5150_get_vbi()
error: buffer overflow regs 5 <= 14
drivers/media/i2c/tvp5150.c
716 }
717 pos = ret & 0x0f;
718 if (pos < 0x0f)
719 type |= regs[pos].type.vbi_type;
It used to be that regs[] had 0x10 elements (or 0xf if you don't count
the empty element at the end), but we ifdef zero most of them so now
we're reading beyond the end of the array.
720 }
721
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-27 10:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-27 10:52 V4L/DVB (3692): Keep experimental SLICED_VBI defines under an #if 0 Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox