Skip to content

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

@github-actions

Description

@github-actions

This issue is generated by Vulcan for commit: 6d9d32f

Coverage: 40.15 percent

Click here for a list of target sources

dict.c

nanoftp.c

c14n.c

HTMLparser.c

HTMLtree.c

doc/examples/trionan.c

threads.c

xmlunicode.c

doc/examples/timsort.h

chvalid.c

xmlIO.c

xmlschemastypes.c

entities.c

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

parserInternals.c

usr/include/pthread.h

valid.c

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

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

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

doc/examples/tree.c

xmlmodule.c

xmlreader.c

parser.c

xlink.c

pattern.c

list.c

SAX2.c

catalog.c

legacy.c

xmlmemory.c

xmlschemas.c

SAX.c

encoding.c

xmlsave.c

xinclude.c

xpointer.c

globals.c

xmlstring.c

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

xmlwriter.c

xmlregexp.c

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

buf.c

nanohttp.c

schematron.c

doc/examples/xpath.c

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

relaxng.c

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

error.c

debugXML.c

hash.c

uri.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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.211483601 +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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.147482651 +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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.175483067 +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 2;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.187483245 +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 3;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.203483482 +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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.215483660 +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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.171483007 +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 250;
+}
 	}
         SKIP_BLANKS;
         name = xmlParseName(ctxt);

--- __backup0	2022-11-18 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.199483423 +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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.195483364 +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 01:15:57.215334551 +0000
+++ parser.c	2022-11-18 01:20:44.163482888 +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);

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