This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix undefined behaviors in regex
- From: Tim Shen <timshen91 at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, polacek at redhat dot com
- Date: Wed, 16 Oct 2013 19:02:03 -0400
- Subject: Re: [Patch] Fix undefined behaviors in regex
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifD=a7-RxtmyAxVJaTV9xjd9fEousVYM-DeEb=MqFPd4oTw at mail dot gmail dot com> <525F0FA5 dot 9040709 at oracle dot com> <CAPrifDnpdN_rRDSDkAy+R_kzmDunF=H7EfN30OgTJYqD=D=X6w at mail dot gmail dot com> <525F1444 dot 5080500 at oracle dot com> <CAPrifDnJzn4WAbTBW=PfGEgW6WiV+BnKF07ZHjWAd8-rji92cA at mail dot gmail dot com> <525F1652 dot 4050405 at oracle dot com>
On Wed, Oct 16, 2013 at 6:42 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> On 10/17/2013 12:39 AM, Tim Shen wrote:
>>
>> On Wed, Oct 16, 2013 at 6:33 PM, Paolo Carlini <paolo.carlini@oracle.com>
>> wrote:
>>>
>>> By the way, please feel free to prepare a reduced testcase for the
>>> -fsanitize people (Marek, Jakub?)
>>
>> Here it is.
>>
>> And we should get undefined behaviors before this commit(r203732).
>
> To be honest, I was thinking something much smaller than the whole <regex>
> ;) But let's add Marek in CC.
int work() {
}
int main() {
int a = work();
return a;
}
/* This is a smaller case to test the sanitizer. It seems that the
undefined sanitizer is not merged? I use `g++ (GCC) 4.9.0 20131003`,
is that too old? */
--
Tim Shen