]> granicus.if.org Git - php/commitdiff
Avoid signed shift ub in php_sdl
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 19 Jun 2019 15:25:20 +0000 (17:25 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 19 Jun 2019 15:27:09 +0000 (17:27 +0200)
ext/soap/php_sdl.c

index de4bf5c328625cc0b156847efb90fb825ba82912..510d03c551e15965581234791c23031f19c72987 100644 (file)
@@ -1178,7 +1178,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
 #define WSDL_CACHE_VERSION 0x10
 
 #define WSDL_CACHE_GET(ret,type,buf)   memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type);
-#define WSDL_CACHE_GET_INT(ret,buf)    ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char)(*buf)[2]<<16)|((int)(*buf)[3]<<24); *buf += 4;
+#define WSDL_CACHE_GET_INT(ret,buf)    ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char)(*buf)[2]<<16)|((unsigned)(*buf)[3]<<24); *buf += 4;
 #define WSDL_CACHE_GET_1(ret,type,buf) ret = (type)(**buf); (*buf)++;
 #define WSDL_CACHE_GET_N(ret,n,buf)    memcpy(ret,*buf,n); *buf += n;
 #define WSDL_CACHE_SKIP(n,buf)         *buf += n;