Skip to content

Failed test bash -c "DPP_RUN_ERROR_CASE=1 ./runtest "Error cases regression tests"" #587

@github-actions

Description

@github-actions

This issue is generated by Vulcan for commit: 8cc0f41

Coverage: 40.19 percent

Click here for a list of target sources

legacy.c

parser.c

xmlunicode.c

xmlmemory.c

schematron.c

xmlsave.c

usr/include/x86_64-linux-gnu/bits/byteswap.h

uri.c

nanoftp.c

SAX.c

encoding.c

c14n.c

xlink.c

xmlmodule.c

threads.c

catalog.c

relaxng.c

usr/include/x86_64-linux-gnu/bits/stdio2.h

xpointer.c

xmlreader.c

xinclude.c

nanohttp.c

usr/include/x86_64-linux-gnu/bits/fcntl2.h

usr/include/x86_64-linux-gnu/bits/string_fortified.h

doc/examples/xpath.c

HTMLparser.c

xmlregexp.c

usr/include/pthread.h

usr/include/x86_64-linux-gnu/bits/poll2.h

hash.c

globals.c

xmlwriter.c

usr/include/x86_64-linux-gnu/bits/unistd.h

pattern.c

usr/include/x86_64-linux-gnu/bits/socket2.h

xmlstring.c

chvalid.c

debugXML.c

xmlIO.c

dict.c

error.c

SAX2.c

list.c

usr/include/x86_64-linux-gnu/sys/stat.h

doc/examples/timsort.h

buf.c

xmlschemas.c

HTMLtree.c

xmlschemastypes.c

parserInternals.c

valid.c

entities.c

doc/examples/tree.c

doc/examples/trionan.c

There is(are) 1/16 failed test(s)

Click here for the failed test commands
  1. [FAILED] bash -c "DPP_RUN_ERROR_CASE=1 ./runtest "Error cases regression tests""

Clicking on the link, you take the page with code highlighted.
There are a lot of the suspicious code snippets and show 5 among them.
Recommend that split your tests or adde new tests.

Click here for FL information

Suspicious score: 1.00

if (((ctxt->lastError.code != XML_ERR_UNDECLARED_ENTITY) &&


Suspicious score: 1.00

(ctxt->lastError.code != XML_WAR_UNDECLARED_ENTITY)) ||


Suspicious score: 1.00

(ctxt->nbentities <= 10000))


Suspicious score: 1.00

case XML_ERR_PEREF_SEMICOL_MISSING:


Suspicious score: 1.00

errmsg = "PEReference: expecting ';'";


15 patch(es) generaetd by vulcan

plausible patch diff info
--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.925779039 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return -1;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.977779900 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 4;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.981779966 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 5;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.989780098 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 6;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.993780165 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 7;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:59.001780297 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 8;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:59.005780363 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 9;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.929779105 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 0;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.937779238 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 10;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 05:41:14.377042134 +0000
+++ parser.c	2022-11-18 05:45:58.941779304 +0000
@@ -6706,7 +6706,11 @@
 
 	SKIP(9);
 	if (!IS_BLANK_CH(CUR)) {
+	    {
 	    xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED, "Space required after 'ELEMENT'\n");
+    if ((1))
+        return 13;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions