[llvm] [YAMLParser] Improve plain scalar spec compliance (PR #68946)

Scott Linder via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 09:36:01 PDT 2023


================
@@ -3153,7 +3153,7 @@ TEST(YAMLIO, TestFlowSequenceTokenErrors) {
 
 TEST(YAMLIO, TestDirectiveMappingNoValue) {
   Input yin("%YAML\n{5:");
-  EXPECT_FALSE(yin.setCurrentDocument());
+  yin.setCurrentDocument();
----------------
slinder1 wrote:

That is OK with me, the fact that the test was found during fuzzing is more than enough reason to adapt it the way you did rather than hunt for a new input which triggers the exact same behavior!

https://github.com/llvm/llvm-project/pull/68946


More information about the llvm-commits mailing list