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

Top Page

Reply to this message
Author: admin
To: pcre-dev
Subject: [pcre-dev] [Bug 2208] pcregrep --count overflow

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

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.