Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8aea932 in mainline


Ignore:
Timestamp:
2019-05-26T13:21:50Z (20 months ago)
Author:
Jakub Jermář <jakub@…>
Branches:
master
Children:
a0e2f9c
Parents:
bdca26a
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-17 19:36:20)
git-committer:
Jakub Jermář <jakub@…> (2019-05-26 13:21:50)
Message:

dlopen() used to run into a null pointer

The rtld functions will return a NULL pointer
if the module cannot be found or loaded. The function
dlopen() failed to check for this case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dlfcn.c

    rbdca26a r8aea932  
    5454        if (m == NULL) {
    5555                m = module_load(runtime_env, path, mlf_local);
     56                if (m == NULL) {
     57                        return NULL;
     58                }
     59
    5660                if (module_load_deps(m, mlf_local) != EOK) {
    5761                        return NULL;
Note: See TracChangeset for help on using the changeset viewer.