Commit 9a61ad29 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Linux DVB: add an assertion

parent 542b07d3
......@@ -568,6 +568,8 @@ void dvb_set_ca_pmt (dvb_device_t *d, struct dvbpsi_pmt_s *pmt)
static int dvb_vset_props (dvb_device_t *d, size_t n, va_list ap)
{
assert (n <= DTV_IOCTL_MAX_MSGS);
struct dtv_property buf[n], *prop = buf;
struct dtv_properties props = { .num = n, .props = buf };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment