a2ps-patches
[Top][All Lists]
Advanced

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

Re: Bug#81684: a2ps 4.13 : input buffer overflow


From: Akim Demaille
Subject: Re: Bug#81684: a2ps 4.13 : input buffer overflow
Date: 25 Mar 2002 17:11:36 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

| Bertrand,
| 
| Thanks for the bug report. This looks like a genuine upstream bug, and I am
| therefor sending this mail to Akim, the author/maintainer.
| 
| Thanks, Dirk
| 
| 
|   Bertrand> Package: a2ps
|   Bertrand> Version: 4.13-2
|   Bertrand> Severity: normal
| 
|   Bertrand> I'm on Linux debian potato, with a2ps 4.13 and psutils 1.17;
| 
|   Bertrand> when I print some files, i have :
| 
|   Bertrand> address@hidden a2ps -Pvoid -1 p2.generique.ps
|   Bertrand> [p2.generique.ps (ps, délégué à PsNup) : 3 pages sur 3 feuilles]
|   Bertrand> input buffer overflow, can't enlarge buffer because scanner uses 
REJECT
| 
| 
|   Bertrand> address@hidden a2ps -vall -Pvoid -1 p2.generique.ps
|   Bertrand> ......
|   Bertrand> Delegating `p2.generique.ps' to `PsNup' (fixps  'p2.generique.ps' 
| cat | cat)
|   Bertrand> fixps: splitting lines too long.
|   Bertrand> [p2.generique.ps (ps, délégué à PsNup) : 3 pages sur 3 feuilles]
|   Bertrand> Expanding of output command user string (`> /dev/null')
|   Bertrand> Expansion of output command (`> /dev/null') is `> /dev/null'
|   Bertrand> perl-open (> /dev/null)
|   Bertrand> r-fopen (/tmp/a2_fIneF4)
|   Bertrand> input buffer overflow, can't enlarge buffer because scanner uses 
REJECT
| 
| 
|   Bertrand> - i've seen a similary pb on mailing list
|   Bertrand> ( 
http://mail.gnu.org/pipermail/bug-a2ps/1999-November/001450.html )
| 
|   Bertrand> - if I compile a2ps_4.13b-5 from woody to potato, I have the same 
Pb
| 
|   Bertrand> - i'm downgrading to a2ps 4.10, and this pb is resolved.
| 
|   Bertrand> - any idea ?
| 
| 
|   Bertrand> -- System Information
|   Bertrand> Debian Release: 2.2
|   Bertrand> Architecture: i386
|   Bertrand> Kernel: Linux balum 2.2.18 #1 SMP Mon Dec 18 10:59:56 CET 2000 
i686
| 
|   Bertrand> Versions of packages a2ps depends on:
|   Bertrand> ii  debianutils             1.13.3           Miscellaneous 
utilities specific t
|   Bertrand> ii  libc6                   2.1.3-13         GNU C Library: 
Shared libraries an
|   Bertrand> ii  libpaperg               1.0.3-13.potato1 Library for handling 
paper charact

Hi People,

I'm happy to inform you that a2ps is now on Savannah.  I'm looking for
people willing to participate.  For a start, Edward Arthur is member
of the team!

Well, I think this extremely simple patch will solve this issue.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * src/lexps.l: Don't use option yylineno, as (i), we don't read
        it, and (ii), for unknown reasons (a bug IMHO), this causes Flex
        to use fixed size buffers, causing the weird `input buffer
        overflow, can't enlarge buffer because scanner uses REJECT'
        messages.
        Fixes Debian #81684.

Index: NEWS
===================================================================
RCS file: /cvsroot/a2ps/a2ps/NEWS,v
retrieving revision 1.1.1.1.2.1
diff -u -u -r1.1.1.1.2.1 NEWS
--- NEWS 25 Mar 2002 15:51:59 -0000 1.1.1.1.2.1
+++ NEWS 25 Mar 2002 16:12:03 -0000
@@ -1,6 +1,9 @@
                     User visible changes in GNU a2ps.
 
 Version 4.13c:
+* Bug Fixes
+   - `input buffer overflow, can't enlarge buffer because scanner uses REJECT'
+     This should no longer happen.
 
 Version 4.13:
  * Options:
Index: src/lexps.l
===================================================================
RCS file: /cvsroot/a2ps/a2ps/src/lexps.l,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 lexps.l
--- src/lexps.l 4 Mar 2002 18:46:28 -0000 1.1.1.1
+++ src/lexps.l 25 Mar 2002 16:12:03 -0000
@@ -1,10 +1,8 @@
 %{ /* -*- c -*- */
-/*
- * A Simple Lexer for PostScript.
- *
- * Copyright (c) 1995-2000 Akim Demaille, Miguel Santana
- *
- */
+/* A Simple Lexer for PostScript.
+
+   Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2002 Akim
+   Demaille, Miguel Santana */
 
 /*
  * This file is part of a2ps.
@@ -35,7 +33,6 @@
 void pslex_initialize PARAMS ((void));
 %}
 
-%option yylineno
 %option prefix="ps"
 %option outfile="lex.yy.c"
 



reply via email to

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