bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grcat crashes with integer overflow


From: Stepan Kasal
Subject: Re: grcat crashes with integer overflow
Date: Sun, 1 Jan 2006 12:14:54 +0100
User-agent: Mutt/1.4.1i

Hello Matthew,
  re this:

On Fri, Dec 23, 2005 at 01:16:53PM -0500, Matthew Good wrote:
> I had problems with grcat crashing with an integer overflow exception
> because it was trying to terminate a loop by increasing the current
> position to "sys.maxint".  Replacing this with a simple break has fixed
> the issue for me:
> 
> --- /usr/bin/grcat      2004-07-28 02:37:37.000000000 -0400
> +++ grcat       2005-12-23 13:08:51.000000000 -0500
> @@ -145,7 +145,7 @@
>                         pos = m.end(0)
>                      else:
>                         prevcount = "once"
> -                       pos = sys.maxint
> +                       break
>                  if has_key('command'):
>                      os.system(pattern['command'])
>                      if not has_key('colours'):

I'm afraid you are not writing to the right list, so your fix will be
forgotten.

If you want to contribute this to the sorce tree of the project, please
find out which package contains the script, and try to determine their
bug report address or the email address of the author, and mail your fix
there.

Have a blessed year,
        Stepan Kasal




reply via email to

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