mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fix shift UB in gd_io.c
This has already been fixed upstream in24d352576c
and772d0107a6
.
This commit is contained in:
parent
1c018af682
commit
ea97fc9c1f
@ -117,7 +117,7 @@ int gdGetWordLSB(signed short int *result, gdIOCtx *ctx)
|
||||
|
||||
int gdGetInt (int *result, gdIOCtx * ctx)
|
||||
{
|
||||
int r;
|
||||
unsigned int r;
|
||||
r = (ctx->getC) (ctx);
|
||||
GD_IO_EOF_CHK(r);
|
||||
*result = r << 24;
|
||||
@ -141,7 +141,7 @@ int gdGetInt (int *result, gdIOCtx * ctx)
|
||||
|
||||
int gdGetIntLSB(signed int *result, gdIOCtx *ctx)
|
||||
{
|
||||
int c = 0;
|
||||
unsigned int c;
|
||||
unsigned int r = 0;
|
||||
|
||||
c = (ctx->getC) (ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user