Package not found: home:alveus:factory/openssl-3

File htmldoc-CVE-2024-46478.patch of Package htmldoc.18643

Index: htmldoc-1.9.16/htmldoc/ps-pdf.cxx
===================================================================
--- htmldoc-1.9.16.orig/htmldoc/ps-pdf.cxx
+++ htmldoc-1.9.16/htmldoc/ps-pdf.cxx
@@ -5695,10 +5695,13 @@ parse_pre(tree_t *t,		/* I - Tree to par
 
 	case MARKUP_NONE :
             for (lineptr = line, dataptr = start->data;
-		 *dataptr != '\0' && lineptr < (line + sizeof(line) - 1);
+		 *dataptr != '\0' && lineptr < (line + sizeof(line) - 9);
 		 dataptr ++)
+	    {
               if (*dataptr == '\n')
+              {
 		break;
+              }
               else if (*dataptr == '\t')
               {
                /* This code changed after 15 years to work around new compiler optimization bugs (Issue #349) */
@@ -5713,6 +5716,7 @@ parse_pre(tree_t *t,		/* I - Tree to par
         	*lineptr++ = *dataptr;
         	col ++;
               }
+           }
 
             *lineptr = '\0';
 
openSUSE Build Service is sponsored by