Commit bec8d3d
Lukas Bolz
fix: issue#44 integer overflow in usage request
- `Usage.Detail::count` and `Usage.Detail::limit` were declared as `long` but parsed as `int`.
- This seems to be caused by a176b6d, where the type was changed from `int` to `long` without adjusting the parsing.
- This caused an integer overflow, resulting in a negative value when e.g. the character limit exceeded `Integer::MAX_VAlUE`.1 parent 6fb600c commit bec8d3d
2 files changed
Lines changed: 7 additions & 2 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments