https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62140
--- Comment #4 from ygribov at gcc dot gnu.org --- Author: ygribov Date: Mon Sep 1 07:47:37 2014 New Revision: 214777 URL: https://gcc.gnu.org/viewcvs?rev=214777&root=gcc&view=rev Log: 2014-09-01 Yury Gribov <y.gri...@samsung.com> PR sanitizer/61897 PR sanitizer/62140 gcc/ * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths. (build_check_stmt): Likewise. (instrument_strlen_call): Likewise. (asan_expand_check_ifn): Likewise and fix types. (maybe_cast_to_ptrmode): New function. gcc/testsuite/ * c-c++-common/asan/pr62140-1.c: New test. * c-c++-common/asan/pr62140-2.c: New test. Added: trunk/gcc/testsuite/c-c++-common/asan/pr62140-1.c trunk/gcc/testsuite/c-c++-common/asan/pr62140-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/asan.c trunk/gcc/testsuite/ChangeLog