[PATCH] D46527: Object: Find terminator correctly when getting long filenames from GNU archives

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 8 10:26:13 PDT 2018


inglorion added a comment.

Thanks, hans. I spent all of yesterday trying to cook up a test case for this. Taking into account the code in MemoryBuffer, I created a file of 20480 (4096 * 5) bytes to get it mmapped and a multiple of the page size, but it did not reproduce the problem. Just in case, I also tried a file not a multiple of the page size, and a small file. No luck. I tried just building the targets that were failing on the bot, but they built just fine locally. I tried using the exact Clang and Chromium revisions that the bot used, but, again, things worked fine locally. I tried the revisions I used a week ago, when I was able to get a repro, but no luck with that either. I also installed afl to try and fuzz my way to something that exercises the failure mode. I'll run that today and see if that gets me something we can use as a test case. At least we have the fix in now.


Repository:
  rL LLVM

https://reviews.llvm.org/D46527





More information about the llvm-commits mailing list