com php-src: erealloc() is infallible: ext/xmlrpc/libxmlrpc/encodings.c
| From: | Christoph Michael Becker | Date: | Wed, 13 Jun 2018 14:10:08 +0000 |
| Subject: | com php-src: erealloc() is infallible: ext/xmlrpc/libxmlrpc/encodings.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102145@lists.php.net to get a copy of this message | ||
Commit: 52f92b51aa2c838c7bc3a55b092bc9570a581367
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 13 Jun 2018 16:10:08 +0200
Parents: 10a9c5194222c3ebdb740a366056092f0e3a62d5
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=52f92b51aa2c838c7bc3a55b092bc9570a581367
Log:
erealloc() is infallible
Changed paths:
M ext/xmlrpc/libxmlrpc/encodings.c
Diff:
diff --git a/ext/xmlrpc/libxmlrpc/encodings.c b/ext/xmlrpc/libxmlrpc/encodings.c
index a2e6ff1..77b5cc1 100644
--- a/ext/xmlrpc/libxmlrpc/encodings.c
+++ b/ext/xmlrpc/libxmlrpc/encodings.c
@@ -76,9 +76,6 @@ static char* convert(const char* src, int src_len, int *new_len, const char* fro
outlen += inlenleft;
outlenleft += inlenleft;
outbuf = (char*)erealloc(outbuf, outlen + 1);
- if(!outbuf) {
- break;
- }
out_ptr = outbuf + diff;
}
else {