[pcre-dev] [Bug 876] New: pcre mush crash while matching som…

Pàgina inicial
Delete this message
Autor: debianlm
Data:  
A: pcre-dev
Assumptes nous: [pcre-dev] [Bug 876] pcre mush crash while matching some URL..., [pcre-dev] [Bug 876] pcre mush crash while matching some URL...
Assumpte: [pcre-dev] [Bug 876] New: pcre mush crash while matching some URL...
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=876
           Summary: pcre mush crash while matching some URL...
           Product: PCRE
           Version: N/A
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: critical
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: debianlm@???
                CC: pcre-dev@???



(
        (?:
        (?:
                (?: https?://|ftp://)
                (?:


(?:(?:[-_0-9a-z.~!$&'\(\)*+,;=]|(?:\%[0-9a-f]{2}))+\.)+(?:[-_0-9a-z.~!$&'\(\)*+,;=]|(?:\%[0-9a-f]{2}))+
                )               
        )
  |
  (?:
                (?:


(?:[-_0-9a-z.~!$&'\(\)*+,;=]+@)?www\.(?:(?:[-_0-9a-z.~!$&'\(\)*+,;=]|(?:\%[0-9a-f]{2}))+\.)+(?:[-_0-9a-z.~!$&'\(\)*+,;=]|(?:\%[0-9a-f]{2}))+
                )               
        )
  |
        (?:
                (?: https?://|ftp://)
                (?:
                        (?:\d{1,3}\.){3}\d{1,3}
                )
        )
        )                       
        (?:\:\d+)?              
  (?:
          (?:
      /(?:[-_0-9a-z.~!$&'\(\)*+,;=:@/?#]|(?:\%[0-9a-f]{2}))*
          )
    |
    (?:
      \?(?:[-_0-9a-z.~!$&'\(\)*+,;=:@/?#]|(?:\%[0-9a-f]{2}))+
    )
    |
    (?:
      \#(?:[-_0-9a-z.~!$&'\(\)*+,;=:@/?#]|(?:\%[0-9a-f]{2}))*
    )
  )?
)       




stack overflow must happen when I use this reg-expression to match following
URL:

http://click.p4p.cn.yahoo.com/cc?p=tao%B1%A6sh%CA%D7ye%C8%C8maidanp%C6%B70807dhi&s=1209124427&e=xbens7QEoInNPAPIlNIXE5MZG4TOFJGrywg6j531RKeou7kkt7AQtIG9OB4bHtBOM0KkXzkFd5kxJeO00rSkIE9rAPZffbQoD2E4p5F7BJ4k30coIvWMinf7ifT2ZvsIeiqCz1MYPdzU6872Aw9XW..cofvjWxftLPABQUOSNwFWIQMDKKMtaEO0ivKPn_z4FVl7kTw5XQgU4hC_iVj2Haem9dVxtGtD0fjIM.tP9pPiNwPsHGw17dsPpylXUxeO.4pZxXtuIyxZsitVUeVzcoOoyAENbV8IkOJ7NM1UhpITc0yd2XDTzLzJMfx2IrwomzpPmZqHEVr3JaKn5gRAcdJF.t3QMC9qGlxw.rFbcdcpi5C.Eow8jef.CexGyB.ahhyGoxTl285H

I have tried pcre 6.7 and 7.9 version !
thanks!

my development enviroment:
windows xp sp3
pcre 6.7 , pcre 7.9 got from
http://www.psyon.org/projects/pcre-win32/index.php
visual sutiod 2008 + sp1


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email