https://github.com/libevent/libevent/blob/9cd5acb5114ce00d425c0cca48a396fb591beaf0/signal.c#L231 ``` realloc(sig->sh_old, ...) ``` followed by ``` sizeof(*sig->sh_old) ``` might be undefined behavior. I think it would be safer to write ``` const int element_size = sizeof(*sig->sh_old); ```