[PATCH] D64507: [BitcodeReader] Validate OpNum, before accessing Record array.

JF Bastien via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 09:43:20 PDT 2019


jfb added inline comments.


================
Comment at: llvm/lib/Bitcode/Reader/BitcodeReader.cpp:4169
+      if (OpNum >= Record.size())
+        return error("Invalid record");
+
----------------
Could you provide more info than "invalid record"?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64507/new/

https://reviews.llvm.org/D64507





More information about the llvm-commits mailing list