mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
1d2d25dcad
A code pattern `p + enclen(enc, p, pend)` may lead to a buffer overrun if incomplete bytes of a UTF-8 character is placed at the end of a string. Because this pattern is used in several places in onigmo, this change fixes the issue in the side of `enclen`: the function should not return a number that is larger than `pend - p`. Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org> |
||
---|---|---|
.. | ||
backward | ||
fiber | ||
internal | ||
io | ||
assert.h | ||
atomic.h | ||
backward.h | ||
debug.h | ||
defines.h | ||
encoding.h | ||
intern.h | ||
io.h | ||
memory_view.h | ||
missing.h | ||
onigmo.h | ||
oniguruma.h | ||
ractor.h | ||
random.h | ||
re.h | ||
regex.h | ||
ruby.h | ||
st.h | ||
subst.h | ||
thread.h | ||
thread_native.h | ||
util.h | ||
version.h | ||
vm.h | ||
win32.h |