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

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

grcat crashes with integer overflow


From: Matthew Good
Subject: grcat crashes with integer overflow
Date: Fri, 23 Dec 2005 13:16:53 -0500

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'):

-- 
Matthew Good <address@hidden>





reply via email to

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