This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix undefined behaviors in regex


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]