-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPTCH-3534: Use already loaded version of JSCoreGTK if available #77
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #77 +/- ##
==========================================
+ Coverage 58.73% 59.28% +0.54%
==========================================
Files 53 53
Lines 4709 4721 +12
Branches 1078 1081 +3
==========================================
+ Hits 2766 2799 +33
+ Misses 1336 1320 -16
+ Partials 607 602 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
b4044ae
to
e8d9978
Compare
execute_jscore.c
Outdated
if (dlinfo(current_process, RTLD_DI_LINKMAP, &map) == 0) { | ||
while (map && !g_proxy_execute_jscore.module) { | ||
for (size_t i = 0; i < library_names_size; i++) { | ||
if (strstr(map->l_name, library_names[i])) { | ||
g_proxy_execute_jscore.module = dlopen(map->l_name, RTLD_NOLOAD | RTLD_LAZY | RTLD_LOCAL); | ||
break; | ||
} | ||
} | ||
map = map->l_next; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extremely deep indentations. Can you make a function that exits early if conditions are nor met.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doing a separate function might make it more complex. I have removed one of the indentations though.
e8d9978
to
7b8fabf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be only 3 args and returned module.
No description provided.