[PATCH] D42900: [asan] Fix filename size on linux platforms.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 12:18:31 PST 2018
vitalybuka added inline comments.
================
Comment at: lib/asan/asan_linux.cc:218
MemoryMappingLayout proc_maps(/*cache_enabled*/true);
- char filename[128];
+ char filename[MAXPATHLEN];
MemoryMappedSegment segment(filename, sizeof(filename));
----------------
please use PATH_MAX from <limits.h>
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D42900
More information about the llvm-commits
mailing list