Re: Question on expected sanitizer operation

2017-10-23 Thread Rick C. Hodgin
Thank you. - Rick C. Hodgin On Monday, October 23, 2017 at 1:43:38 PM UTC-4, Matt Morehouse wrote: > > ASan should not complain in this case since all accesses occur within the > allocated buffer. Only the actual reads and writes are checked. > > On Mon, Oct 23, 2017 at 10:09 AM, Rick C.

Re: Question on expected sanitizer operation

2017-10-23 Thread 'Matt Morehouse' via address-sanitizer
ASan should not complain in this case since all accesses occur within the allocated buffer. Only the actual reads and writes are checked. On Mon, Oct 23, 2017 at 10:09 AM, Rick C. Hodgin wrote: > I have a simple C structure that looks like this: > > struct SExample

Question on expected sanitizer operation

2017-10-23 Thread Rick C. Hodgin
I have a simple C structure that looks like this: struct SExample { int total_bytes; int id; int some_other_code; }; And it is used in code like this: const char text1[] = "some data"; int length = sizeof(SExample + sizeof(int) + strlen(text1);