Subject: | member_expr_walker_new heap-buffer-overflow with AddressSanitizer |
https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer does
not understand the redefinition of the stack var me to the heap in
member_expr_walker_new():
Newc(0, me, offsetof(struct member_expr, buf) + len + 1, char, struct
member_expr);
me->startup = 1; => heap-buffer-overflow
I tried to set the
__attribute__((no_address_safety_analysis))
to this function, but it did not work.
The whole trick smells, but valgrind accepts it.
So I guess we have to live with it.
--
Reini Urban