diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-16 17:45:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-16 17:45:27 +0900 |
commit | fac814c2dc31afef272b45392a7389ef0bfa3a4f (patch) | |
tree | 403f732183e2a0191ea36042c978cb1e7be2d666 /regexec.c | |
parent | 29e01c6f5f8901bdaab818dfd4699cfa2a86b8e6 (diff) | |
download | ruby-fac814c2dc31afef272b45392a7389ef0bfa3a4f.tar.gz |
Fix `PLATFORM_GET_INC`
On platforms where unaligned word access is not allowed, and if
`sizeof(val)` and `sizeof(type)` differ:
- `val` > `type`, `val` will be a garbage.
- `val` < `type`, outside `val` will be clobbered.
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3464,7 +3464,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, if (ischanged && msa->enable_cache_match_opt) { RelAddrType rel; OnigUChar *addr; - int mem; + MemNumType mem; UChar* tmp = p; switch (*tmp++) { case OP_JUMP: |