diff options
| author | Anastasia Belova <abelova@astralinux.ru> | 2025-01-28 15:08:54 +0300 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-01-29 10:35:28 +0900 |
| commit | ff64806ae51c2813f0c6334c0c52082b027c255c (patch) | |
| tree | c35fb32b44ef96228a642a6067d0d04174776012 /include/ruby/internal/static_assert.h | |
| parent | a34b95fef973baa718b8c56324d45e5080ac0030 (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/static_assert.h')
0 files changed, 0 insertions, 0 deletions
