Fwd: Bug#606728: dvbscan: Infinite loop parsing arguments

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

 



----------  Forwarded Message  ----------

Subject: Bug#606728: dvbscan: Infinite loop parsing arguments
Date: Sat, 11 Dec 2010, 21:13:08
From: Vincent Pelletier <plr.vincent@xxxxxxxxx>
To: Debian Bug Tracking System <submit@xxxxxxxxxxxxxxx>

Package: dvb-apps
Version: 1.1.1+rev1355-1
Severity: normal
Tags: patch

How to reproduce:
  dvbscan -out raw - some_file
Result:
  dvbscan process taking 100% of cpu.

Cause:
  Argument parser doesn't increment argument position when
encountering -out parameter, so it loops forever on parsing -out.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36vin0 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages dvb-apps depends on:
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared 
lib
ii  udev                          164-2      /dev/ and hotplug management 
daemo

dvb-apps recommends no packages.

dvb-apps suggests no packages.

-- no debconf information

-----------------------------------------
--- dvbscan.c.org	2010-12-11 11:00:22.000000000 +0100
+++ dvbscan.c	2010-12-11 11:00:05.000000000 +0100
@@ -225,6 +225,7 @@
 			output_filename = argv[argpos+2];
 			if (!strcmp(output_filename, "-"))
 				output_filename = NULL;
+			argpos+=3;
 		} else {
 			if ((argc - argpos) != 1)
 				usage();

[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