Re: [pcre-dev] PCRE2 10.21 JIT matching causes Valgrind erro…

Páxina inicial
Borrar esta mensaxe
Autor: Tavian Barnes
Data:  
Para: pcre-dev
Asunto: Re: [pcre-dev] PCRE2 10.21 JIT matching causes Valgrind errors
On 13 January 2016 at 11:44, <ph10@???> wrote:
> On Wed, 13 Jan 2016, Zoltán Herczeg wrote:
>
>> I don't really know much about suppressing valgrind errors.
>
>> >$ cat valgrind.supp
>> >{
>> > PCRE2 JIT wide loads
>> > Memcheck:Cond
>> > obj:???
>> >}
>
> This suppressor does it for me:
>
> {
>    name
>    Memcheck:Addr16
>    obj:*
>    obj:*
>    obj:*
> }


I saw that one in the PCRE2 source, but that's a different error
(about a too-wide load, vs. use of uninitialized bytes). Anyway, that
one will suppress all Addr16 errors, even in non-JIT code, because
obj:* matches everything. obj:??? like I had in the initial email
matches only unknown objects.

--
Tavian Barnes