analyze: fix segfault when malloc() fails (#21874)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Dec 2021 20:03:16 +0000 (05:03 +0900)
committerGitHub <noreply@github.com>
Thu, 23 Dec 2021 20:03:16 +0000 (21:03 +0100)
commit558ad6bd3855834c74adea8b3f22bb8e3dc514f9
treea683dc5f94e46005d324521cadd4b655347c9acd
parent10c8c32f1391bbf414cf47ed863288328e985790
analyze: fix segfault when malloc() fails (#21874)

Fixes #21872.

log_syntax_callback sets 's', a.k.a. '*userdata', to POINTER_MAX to signal allocation failure.
If the error does not cause immediate failure of the program, and log_syntax_callback is called
again, it would try to use 's' as a pointer to a set and fail badly.
src/analyze/analyze-verify.c