From: Tom H. <to...@co...> - 2020-01-14 19:01:39
|
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 (to...@co...) http://compton.nu/ |