Re: Invalid read well inside a block alloc'd

Tom Hughes <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
On 14/01/2020 18:55, Paul-Antoine Arras wrote:
> Le 14/01/2020 à 19:51, Tom Hughes a écrit :
>> On 14/01/2020 16:53, Paul-Antoine Arras wrote:
>>
> [...]
>>> I struggle to understand how a read into a block of properly alloc'd 
>>> memory can be invalid, given that the application doesn't use client 
>>> requests.
> [...]
>>> How can a block of dynamically-allocated memory be marked 
>>> unaddressable without having been freed?
>>
>> By using the VALGRIND_MAKE_MEM_NOACCESS macro.
>>
> 
> Sure, but as I mentioned in my message, the application code does not 
> use client requests.

Using it as a thread stack could also do it, though it looks a
bit small for that, or some sort or whacky stack pointer stunts
that lead to valgrind thinking it's part of the stack.

Tom

-- 
Tom Hughes ([email protected])
http://compton.nu/


_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.