forked from geode-sdk/android-launcher
null check on dlpi name
This commit is contained in:
1 file changed
+1
-1
@@ -174,7 +174,7 @@ std::vector<std::string> get_symbols_listing() {
|
|||||||
|
|
||||||
int on_dl_iterate(dl_phdr_info* info, size_t size, void* data) {
|
int on_dl_iterate(dl_phdr_info* info, size_t size, void* data) {
|
||||||
// this is probably going to be gd
|
// 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
|
// step 1: get the dynamic table
|
||||||
std::uintptr_t dyn_addr = 0u;
|
std::uintptr_t dyn_addr = 0u;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user