ICU builds fails due to corruption| double free when using very large CFLAGS

Description

Hi, this is related to bug https://ssl.icu-project.org/trac/ticket/7956 and reported on https://bugs.gentoo.org/show_bug.cgi?id=326021

The problem is that very large CFLAGS will cause either corruption or a double free on 4.6 (and probably newer) icu library builds.

This odd problem can be reproduced using these CFLAGS:

(The -D is used to force the bug).

As this is shown I can think of various cuases:
One of the options strings being so large causes a overflow then corruption
The option set string itselfs is triggering an overflow
The function to increase the CFLAGS buffer is not working properly.

Activity

Show:
TracBot
June 30, 2018, 11:41 PM
Trac Comment 4.5 by francisco1988+icu@f74d39fa044aa309—2011-01-28T00:17:55.792Z

Replying to (Comment 4 srl):
Can you post the commit please? I'd like to forward port and test it if possible

TracBot
June 30, 2018, 11:41 PM
Trac Comment 6 by anonymous—2011-02-05T19:12:03.784Z

Use the review link in the upper right corner to see the changes.

TracBot
June 30, 2018, 11:41 PM
Trac Comment 7 by —2016-10-05T23:13:36.787Z

Milestone 4.7.1 deleted

Fixed

Assignee

mow@icu-project.org

Reporter

TracBot

Components

Labels

None

Reviewer

None

Priority

major

Time Needed

Days

Fix versions