bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] Bug#161286: indent: texinfo2man's argv handling is fragile


From: Santiago Vila
Subject: [Bug-indent] Bug#161286: indent: texinfo2man's argv handling is fragile (fwd)
Date: Wed, 18 Sep 2002 13:12:40 +0200 (CEST)

Hello.

I've received the following report from the Debian bug system.
[ Please keep the Cc: lines when replying. Thanks ].

---------- Forwarded message ----------
Date: Tue, 17 Sep 2002 23:53:38 -0700
From: Devin Carraway <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Subject: Bug#161286: indent: texinfo2man's argv handling is fragile

Package: indent
Version: 2.2.8-1
Severity: normal
Tags: sid

The texinfo2man utility included in indent tends to crash when less than two
arguments are specified on the commandline.  The app's main() simply does
this:

    in = fopen (argv[2], "r");
    process_texi (in);
    fclose (in);

This will happily dereference argv[2] whether it exists or not, then assume
the fopen proceeded and try to read from a quite possibly closed FILE*.  A
few lines later it does so again with argv[1].

If texinfo2man is actually to be provided to users, it should (a) be able to
survive unpredictable commandlines, and (b) be able to print its commandline
usage.  That said, I'm not clear what it's doing in the indent binary
packages anyway.


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux kesha 2.4.19ipsec+ll+usbdnet #2 Sun Aug 18 23:17:48 PDT 2002 i686
Locale: LANG=C, LC_CTYPE=

Versions of packages indent depends on:
ii  libc6                         2.2.5-14   GNU C Library: Shared libraries an

-- no debconf information






reply via email to

[Prev in Thread] Current Thread [Next in Thread]