All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: Bug#606728: dvbscan: Infinite loop parsing arguments
@ 2012-05-13 10:11 Mark Purcell
  0 siblings, 0 replies; only message in thread
From: Mark Purcell @ 2012-05-13 10:11 UTC (permalink / raw)
  To: linux-media; +Cc: Vincent Pelletier, 606728-forwarded

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]


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

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

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

-----------------------------------------

[-- Attachment #2: dvbscan.c.diff --]
[-- Type: text/x-diff, Size: 301 bytes --]

--- 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();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-13 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-13 10:11 Fwd: Bug#606728: dvbscan: Infinite loop parsing arguments Mark Purcell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.