[PATCH] D69160: [obj2yaml] - Stop triggering UB when dumping corrupted strings.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 09:57:22 PDT 2019


jhenderson added inline comments.


================
Comment at: llvm/test/tools/obj2yaml/invalid-section-name.yaml:2-4
+## Here we replace "foo" name with a sequence of characters that
+## do are not representable as unsigned char.
+## We used to have an assert for this case before. 
----------------
It looks like @rupprecht's comment (remove "do") here wasn't addressed prior to commit. I also want to suggest a couple of other minor improvements to the comment:

"Here we replace the section name..."
"We used to assert for..."


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69160





More information about the llvm-commits mailing list