summaryrefslogtreecommitdiff
path: root/include/ruby/internal/iterator.h
diff options
context:
space:
mode:
authorAnastasia Belova <abelova@astralinux.ru>2025-01-28 15:08:54 +0300
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2025-01-29 10:35:28 +0900
commitff64806ae51c2813f0c6334c0c52082b027c255c (patch)
treec35fb32b44ef96228a642a6067d0d04174776012 /include/ruby/internal/iterator.h
parenta34b95fef973baa718b8c56324d45e5080ac0030 (diff)
Fix possible dereference of NULL
In some places in compile.c (for example in compile_builtin_arg) ERROR_ARGS macro is used while node = NULL. This macro uses nd_line which dereferences node. Add check for NULL to prevent such errors.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12656
Diffstat (limited to 'include/ruby/internal/iterator.h')
0 files changed, 0 insertions, 0 deletions