[pcre-dev] [Bug 2177] fails in recursive mode for filenames …

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2177] fails in recursive mode for filenames >= 129 chars
https://bugs.exim.org/show_bug.cgi?id=2177

Philip Hazel <ph10@???> changed:

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


--- Comment #1 from Philip Hazel <ph10@???> ---
Thank you for this report. There was some very strange code in both pcre2grep
and pcregrep when handling recursive file names and trying to protect against
overlong file names. I have fixed both of them and committed the patches. They
should now be able to handle file name components of any length, up to a
maximum of 2047 for the whole file name. (Each time it recurses down a
directory it gets a 2048 buffer on the stack for the new name. I didn't want to
have to malloc/free each time as that does seem wasteful. There is perhaps a
neater way; I may think about it for pcre2grep. The original code is nearly 20
years old now.)

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