[PATCH 2/6] [dvb-apps] dvbscan: fix infinite loop parsing arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reproducible using 'dvbscan -out raw - some_file'

Bug-Debian: http://bugs.debian.org/606728

Signed-off-by: Jonathan McCrohan <jmccrohan@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux