Changeset d49194d in mainline


Ignore:
Timestamp:
2019-05-18T21:43:14Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
859d006
Parents:
87bc11f
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-17 19:36:20)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-05-18 21:43:14)
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

    r87bc11f rd49194d  
    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.