[PATCH 2/6] [dvb-apps] dvbscan: fix infinite loop parsing arguments
Jonathan McCrohan
jmccrohan at gmail.com
Sun May 4 01:51:17 UTC 2014
Reproducible using 'dvbscan -out raw - some_file'
Bug-Debian: http://bugs.debian.org/606728
Signed-off-by: Jonathan McCrohan <jmccrohan at gmail.com>
---
util/dvbscan/dvbscan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/dvbscan/dvbscan.c b/util/dvbscan/dvbscan.c
index f23411f..462c275 100644
--- a/util/dvbscan/dvbscan.c
+++ b/util/dvbscan/dvbscan.c
@@ -198,6 +198,7 @@ int main(int argc, char *argv[])
} else if (!strcmp(argv[argpos], "-out")) {
if ((argc - argpos) < 3)
usage();
+ argpos+=3;
} else {
if ((argc - argpos) != 1)
usage();
--
1.9.2
More information about the pkg-vdr-dvb-devel
mailing list