mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
fix (signed) integer overflow (part of bug #52550
This commit is contained in:
parent
be4053cea0
commit
91ce8041a3
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ END_EXTERN_C()
|
|||
if (idx-1 > LONG_MAX) { /* overflow */ \
|
||||
break; \
|
||||
} \
|
||||
idx = (ulong)(-(long)idx); \
|
||||
idx = -idx; \
|
||||
} else if (idx > LONG_MAX) { /* overflow */ \
|
||||
break; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue