1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
Yusuke Endoh 1d2d25dcad Prevent potential buffer overrun in onigmo
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>
2022-10-25 17:02:43 +09:00
..
backward Check if __assume is supported 2022-02-19 23:32:52 +09:00
fiber Update Fiber::Scheduler documentation. (#6562) 2022-10-15 21:43:45 +13:00
internal Use CXX14 to allow constexpr with non-return statements 2022-10-24 16:47:42 -07:00
io Add support for anonymous shared IO buffers. (#6580) 2022-10-19 18:53:38 +13:00
assert.h typos 2022-08-27 14:42:55 -07:00
atomic.h
backward.h Revert "Finer-grained inline constant cache invalidation" 2022-03-25 20:29:09 +09:00
debug.h
defines.h
encoding.h
intern.h
io.h Try nil as default for 'default timeout'. (#6509) 2022-10-08 14:02:34 +13:00
memory_view.h memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088) 2021-11-08 12:52:09 +09:00
missing.h [wasm] wasm/missing.{c,h}: add missing libc stubs for wasi-libc 2022-01-19 11:19:06 +09:00
onigmo.h Prevent potential buffer overrun in onigmo 2022-10-25 17:02:43 +09:00
oniguruma.h
ractor.h Fix typos 2021-11-02 19:17:37 +09:00
random.h
re.h
regex.h
ruby.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
st.h
subst.h
thread.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
thread_native.h [wasm] add no thread variant for freestanding environment 2022-01-19 11:19:06 +09:00
util.h Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
version.h Include JIT information in crash reports 2022-06-20 17:18:29 -04:00
vm.h
win32.h [Bug #5317] Use rb_off_t instead of off_t 2022-09-08 23:01:07 +09:00