Opened 6 years ago

#7176 new Bugs

Infinite loop in regex.replace rule.

Reported by: Dmitriy Kinoshenko <dvb.kharkov@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:


regex.replace falls into infinite "while $(parts)" loop if "match" parameter is empty string. Example:

import regex ;

str = blabla ; from = "" ; to = ":" ; res = [ regex.replace $(str) $(from) $(to) ] ; ECHO res: ; ECHO $(res) ;

Change History (0)

Note: See TracTickets for help on using tickets.