This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 3/3] [asan] Instrument built-in memory access function calls
Jakub Jelinek <jakub@redhat.com> writes:
>> For 'strlen', can the memory check be done at the end of the string
>> using the returned length?
>
> Guess strlen is commonly expanded inline, so it would be worthwhile to check
> the shadow memory after the call (well, we could check the first byte
> before the call and the last one after the call).
How do I get the result of the (strlen) call in gimple?
--
Dodji