Commit d7de73b
authored
Fix overflow check in OnUpdateMemoryConsumption (php#10456)
memsize is a signed long, therefore the check against the
(*un*signed long maximum) / 1024² will allow too large values. This check worked
correctly in d4b3f89 where it checked against the maximum signed
value, but was broken in 003346c. Fix it by changing ZEND_ULONG_MAX
to ZEND_LONG_MAX.1 parent 1173c2e commit d7de73b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments