[PATCH] D119307: [Bitstream] Fix UB in left-shift in ReadVBR

Jan Korous via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 14 18:24:16 PST 2022


jkorous updated this revision to Diff 408681.
jkorous added a comment.

switched to assert
added the assert also to `ReadVBR64`


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

https://reviews.llvm.org/D119307

Files:
  llvm/include/llvm/Bitstream/BitstreamReader.h
  llvm/lib/Bitstream/Reader/BitstreamReader.cpp
  llvm/test/Bitcode/invalid.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119307.408681.patch
Type: text/x-patch
Size: 3832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220215/6d69e441/attachment.bin>


More information about the llvm-commits mailing list