File php-CVE-2019-9024.patch of Package php5.14673

Index: php-7.0.7/ext/xmlrpc/libxmlrpc/base64.c
===================================================================
--- php-7.0.7.orig/ext/xmlrpc/libxmlrpc/base64.c	2016-05-25 15:13:51.000000000 +0200
+++ php-7.0.7/ext/xmlrpc/libxmlrpc/base64.c	2019-03-06 11:49:51.614001909 +0100
@@ -149,6 +149,8 @@ void base64_decode_xmlrpc(struct buffer_
 	    int c;
 	    while (1) {
 	      c = *(source++);
+              if (c < 0)
+                return;
 	      offset++;
 	      if (offset > length) endoffile = 1;
 	      if (isspace(c) || c == '\n' || c == '\r') continue;
openSUSE Build Service is sponsored by