Commit 4376228
committed
[MERGE chakra-core#118] Fix max length condition + prevent assert crash
Merge pull request chakra-core#118 from obastemur:fix_assert_uintmax
1 - `UINT_MAX/3 < MAXLONG`
2 - x86/? max `size_t` == UINT_MAX
Current `if` statement wouldn’t work for x86/? arch. Perhaps it wasn’t
an issue thanks to following `assert`.
So, success of `if` statement prevents the necessity for following
`Assert`. As a result, application would throw instead of `assert`
crash.1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments