diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2026-05-17 22:49:44 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2026-05-18 23:10:42 -0700 |
| commit | 07fe0b297bc7b9c4e344eedd8244a73edda95c77 (patch) | |
| tree | a444012254289167cc0ea12e3ca5654876dd8fa2 /java/org/gnu/emacs/EmacsDialogButtonLayout.java | |
| parent | 7587bb2654a6c22f8c9709cefd3ad8d45938b199 (diff) | |
Fix undefined behavior in maybe_resize_hash_table
Problem discovered with GCC 16.1.1 -fsanitize=undefined.
* src/fns.c (maybe_resize_hash_table): Avoid undefined
behavior when h->key_and_value or h->hash are null pointers,
in which case we call memcpy (destination, NULL, 0)
which has undefined behavior in C89 through C23.
Diffstat (limited to 'java/org/gnu/emacs/EmacsDialogButtonLayout.java')
0 files changed, 0 insertions, 0 deletions
