Wrong null-pointer check
Brought to you by:
noxorc
Hello
Since commit [4f8b339facb471192e021fffd5db545a0fbddbc3] Make ELF constructors and destructors work, simple EFI tools like for example t.c from the apps directory crash.
The reason seems to be a wrong null-pointer check in the ctors()/dtors() functions in lib/entry.c:
funcp func = *location;
- if (location != NULL)
+ if (func != NULL)
func();
ommit fe76d597a9b85f8af55235dd41722abf8fe63ca1 (HEAD -> master, origin/master, origin/HEAD)
Author: Nigel Croxon ncroxon@redhat.com
Date: Tue May 16 08:34:07 2023 -0400