[PATCH] D46214: Avoid reading past end of archive looking for long file name

Rafael Avila de Espindola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 17:23:10 PDT 2018


espindola added inline comments.


================
Comment at: llvm/lib/Object/Archive.cpp:186
+      if (End == StringRef::npos)
+        End = ST.size();
+      return StringRef(Start, End - StringOffset - 1);
----------------
This should be an error, no?


https://reviews.llvm.org/D46214





More information about the llvm-commits mailing list