We're updating the issue view to help you get more done. 

Valgrind warning on incorrect regex replacement syntax

Description

If the replacement string in a regular expression search-and-replace operation ends in '$', there is a read of uninitialized memory. ICU reads one word outside the buffer when it tries to validate the syntax for a capture group. Run the attached C++ program will valgrind and it will report the read.

Environment

Status

Assignee

Andy Heninger

Reporter

TracBot

Labels

tracCreated

Mar 07, 2018, 7:50 AM

tracOwner

andy

tracProject

ICU4C

tracReporter

martin.hansson@96b2f16665ff96ba

tracResolution

fixed

tracReviewer

pedberg

tracStatus

closed

Components

Fix versions

Priority

critical