ASan does not catch global buffer overflow in the following example:
#include <stdio.h>
__attribute__((weak)) char zz[10] = "012345678";
int main(void) {
for (int i = 0; i < 11; ++i) {
zz[i] = '5';
}
printf("%s\n", zz);
return 0;
}
Reported by eugenis@google.com on 2011-10-07 07:22:47
Originally reported on Google Code with ID 7
Reported by
eugenis@google.com
on 2011-10-07 07:22:47