Onigmo icon indicating copy to clipboard operation
Onigmo copied to clipboard

Onigmo is a regular expressions library forked from Oniguruma.

Results 44 Onigmo issues
Sort by recently updated
recently updated
newest added

This PR fixes out of bounds memory read in `onig_node_str_cat` revealed by fuzzing fluent-bit: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46049 The root cause is that a call to `enclen` inside of `PFETCH` macro when called...

This PR fixes out of bounds memory read in `add_compile_string` revealed by fuzzing fluent-bit: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46086 The root cause is that a call to `enclen` in `compile_string_node` results in a call...

Absense operator has missed shorter matches. (#150) Fix the operator to search from the same start position when a temporary end position is updated.

``` p /(?~ab)/.match("abc") p /(?~abc)/.match("abc") p /(?~ab|abc)/.match("abc") => # # # ``` But ``` p /(?~abc|ab)/.match("abc") => # ```

Hi @k-takata, thanks for the lib. while I was trying to build the lib, I faced this error on Windows 10 (64-bit operating system, x64-based processor). ``` Onigmo\regint.h(235): fatal error...

\R is not available in a character class. It would be better to note this.

## Motivations: - Onigumo implements token threaded VM but didn't implement direct threaded code yet. - https://github.com/k-takata/Onigmo/issues/51 ## Changes: - Add a pointer field to each bytecode to hold label...

Regex pattern : `(?iu)(?>(?:)|(?:@\A(?>(?[_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}])|(?(?>\g|[\p{Nd}]))|(?(?)\g\g*+))))\g` cf. [https://www.maruo.co.jp/hidesoft/2/x39719_.html?a=0#39719](https://www.maruo.co.jp/hidesoft/2/x39719_.html?a=0#39719)

The POSIX compatibility functions regcomp, regexec and regerror are included in the Onigmo library. There doesn't seem to be any way to avoid this without patching the code or build...

Regex pattern : `(?u)(?>(?:)*+|)` cf. [https://www.maruo.co.jp/hidesoft/2/x39708_.html#39708](https://www.maruo.co.jp/hidesoft/2/x39708_.html#39708)