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

uprv_convertToPosix has a pointer to a stack local from a destroyed scope

Description

From https://bugzilla.mozilla.org/show_bug.cgi?id=1373763:

This causes Windows ASan builds to crash soon after startup.

 

https://dxr.mozilla.org/mozilla-central/rev/fe809f57bf2287bb937c3422ed03a63740b3448b/intl/icu/source/common/locmap.c

 

Line 1053 sets pPosixID = locName. Then locName goes out of scope, but the function continues to use pPosixID.

Environment

Status

Assignee

Jeff Genovy

Reporter

TracBot

Labels

tracCc

jungshik

tracCreated

Jun 29, 2017, 5:14 PM

tracOwner

jefgen

tracProject

ICU4C

tracReporter

andre.bargull+icu@f74d39fa044aa309

tracResolution

fixed

tracReviewer

shawnste

tracStatus

closed

Components

Fix versions

Priority

major