mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
6eaa585b80
This commit fixes a use-after-free vulnerability in `ary_compact` by replacing a pointer-based loop with an index-based loop. This prevents a raw pointer from becoming stale after a garbage collection cycle is triggered by `mrb_ary_push`. Co-authored-by: Gemini <gemini@google.com>