Bug#606728: dvbscan: Infinite loop parsing arguments
---------- Forwarded Message ----------
Subject: Bug#606728: dvbscan: Infinite loop parsing arguments
Date: Sat, 11 Dec 2010, 21:13:08
From: Vincent Pelletier <[email protected]>
To: Debian Bug Tracking System <[email protected]>
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 renamed from dvbscan.c.org +1 -0
@@ -225,6 +225,7 @@ output_filename = argv[argpos+2 ];if (!strcmp (output_filename,"-" )) output_filename =NULL ; + argpos+=3 ; }else {if ((argc - argpos) !=1 )usage ();