diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-19 17:25:20 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-19 17:27:09 +0200 |
commit | 8743d5e99acd59504bdf34e65d2ba25f20d76970 (patch) | |
tree | fb7f1b00eb109aa919bdfaee10f399c53901ba7d /ext/soap | |
parent | 608097a901fb28d3b1ed0ff4ea2bb76ae9bb1272 (diff) | |
download | php-git-8743d5e99acd59504bdf34e65d2ba25f20d76970.tar.gz |
Avoid signed shift ub in php_sdl
Diffstat (limited to 'ext/soap')
-rw-r--r-- | ext/soap/php_sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index de4bf5c328..510d03c551 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -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; |