null check on dlpi name

This commit is contained in:
qimiko committed 2024-06-22 15:29:49 -07:00
1 parent e9e250191c
commit 3daf5c48f0
1 file changed
+1 -1
+1 -1
View File
@@ -174,7 +174,7 @@ std::vector<std::string> get_symbols_listing() {
int on_dl_iterate(dl_phdr_info* info, size_t size, void* data) {
// this is probably going to be gd
if (strstr(info->dlpi_name, "libcocos2dcpp.so") != nullptr) {
if (info->dlpi_name != nullptr && strstr(info->dlpi_name, "libcocos2dcpp.so") != nullptr) {
// step 1: get the dynamic table
std::uintptr_t dyn_addr = 0u;