[pcre-dev] [Bug 2208] pcregrep --count overflow

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2208] pcregrep --count overflow
https://bugs.exim.org/show_bug.cgi?id=2208

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED


--- Comment #1 from Philip Hazel <ph10@???> ---
You are quite right. This is unchanged from when I first hacked up pcregrep in
1997 as a quick demo for PCRE. I obviously never thought anyone would process
files with more than 2147483647 lines - I still find it boggling, but what do I
know?

Anyway, I have changed the relevant variables to unsigned long int and
committed the patch, so it will be in the next release. This will be 8.42,
probably out fairly early next year. Note, however, that PCRE1 and pcregrep are
obsolescent, as PCRE2 has been released for nearly 3 years now. The pcre2grep
utility suffered from the same int issue, but I have upgraded it to unsigned
long int as well. There are features in pcre2grep that are not in pcregrep.

--
You are receiving this mail because:
You are on the CC list for the bug.