diff options
| author | Hiroya Fujinami <make.just.on@gmail.com> | 2025-07-30 20:56:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-30 20:56:13 +0900 |
| commit | 66bcb69054c7dc74462b141d915db02f5bc77128 (patch) | |
| tree | 329401831193b2cc9419a0c3b7e43bf81db0fd43 /include/ruby/assert.h | |
| parent | cbe5241c770a52b2f0abaa5935623ce24d00c531 (diff) | |
Port Oniguruma patches to prevent integer overflow (#14027)
* Port a Oniguruma patch: Integer overflow in forward_search_range()
https://github.com/kkos/oniguruma/commit/db64ef3189f54917a5008a02bdb000adc514a90a
Co-Authored-By: K.Kosako <kkos@users.noreply.github.com>
* Port a Oniguruma patch: Integer overflow in backward_search_range() and onig_search_gpos()
https://github.com/kkos/oniguruma/commit/bfc36d3d8139b8be4d3df630d625c58687b0c7d4
Co-Authored-By: K.Kosako <kkos@users.noreply.github.com>
* Port a Oniguruma patch: Integer overflow in onig_search_gpos()
https://github.com/kkos/oniguruma/commit/778a43dd56925ed58bbe26e3a7bb8202d72c3f3f
It differs from the Oniguruma patch in that it dosen't use `onigenc_get_prev_char_head()`
because this function's signature has been changed by Oniguruma and the change is not ported
in Onigmo for now. This patch respects the current Onigmo implementation.
Co-Authored-By: K.Kosako <kkos@users.noreply.github.com>
* Add castings to prevent warnings
* Correct castings to use OnigDistance
---------
Co-authored-by: K.Kosako <kkos@users.noreply.github.com>
Diffstat (limited to 'include/ruby/assert.h')
0 files changed, 0 insertions, 0 deletions
