summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext
diff options
context:
space:
mode:
authordearblue <[email protected]>2019-06-22 16:48:22 +0900
committerdearblue <[email protected]>2019-06-22 18:16:38 +0900
commit758353902940e43530dbbbab0d9ce6ded5884923 (patch)
tree92ee93e7f1044d4178bf0f5e3b63cfe0bbbf9199 /mrbgems/mruby-array-ext
parentc53b7cedccf7f5260dc8b4f88c5f93ea550bc5df (diff)
downloadmruby-758353902940e43530dbbbab0d9ce6ded5884923.tar.gz
mruby-758353902940e43530dbbbab0d9ce6ded5884923.zip
Fix potential overflow in `utf8len()`
For example on 32 bit mode, when `p = 0xfffffffd`, `e = 0xfffffffe` and `len = 4`, the sum of `p` and `len` can be to `1`, and comparison with `e` will to be false. As a result, a segmentation fault occurs by referring to address 0.
Diffstat (limited to 'mrbgems/mruby-array-ext')
0 files changed, 0 insertions, 0 deletions