Commit 2f05830
committed
zip: Don't truncate return value of zip_fread() with user sizes
The return type has been zip_int64_t since 2009, so we shouldn't
truncate to an int because the user may have requested a size that won't
fit in an int.
Closes phpGH-20509.1 parent 6054a90 commit 2f05830
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | | - | |
1336 | 1335 | | |
1337 | 1336 | | |
1338 | 1337 | | |
| |||
1348 | 1347 | | |
1349 | 1348 | | |
1350 | 1349 | | |
1351 | | - | |
| 1350 | + | |
1352 | 1351 | | |
1353 | 1352 | | |
1354 | 1353 | | |
| |||
2910 | 2909 | | |
2911 | 2910 | | |
2912 | 2911 | | |
2913 | | - | |
2914 | | - | |
2915 | 2912 | | |
2916 | 2913 | | |
2917 | 2914 | | |
| |||
2948 | 2945 | | |
2949 | 2946 | | |
2950 | 2947 | | |
2951 | | - | |
| 2948 | + | |
2952 | 2949 | | |
2953 | 2950 | | |
2954 | 2951 | | |
| |||
0 commit comments