[vlc-commits] Linux DVB: add an assertion
Rémi Denis-Courmont
git at videolan.org
Sun Mar 11 17:07:06 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 11 16:22:25 2012 +0200| [9a61ad29780421e83b2073db71114fbca7ea893b] | committer: Rémi Denis-Courmont
Linux DVB: add an assertion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a61ad29780421e83b2073db71114fbca7ea893b
---
modules/access/dtv/linux.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index ec64e3c..66d3fec 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -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 };
More information about the vlc-commits
mailing list