diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-03-19 18:17:08 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-03-19 18:17:08 +0000 |
commit | f473943d7301848fa75abfc4254916e4eb0151b2 (patch) | |
tree | d98910406911eecfa8bcaa638fbb9132baec373d /ldso | |
parent | f9e3d5ffc0472279dde8589fa52e2dfb7e78de03 (diff) |
Prevent uninitialized use
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-elf.c | 2 | ||||
-rw-r--r-- | ldso/ldso/readelflib1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index 37d622dd8..d565b9290 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -164,13 +164,13 @@ struct elf_resolve *_dl_load_shared_library(int secure, char *libname; _dl_internal_error_number = 0; + pnt = libname = full_libname; /* quick hack to ensure mylibname buffer doesn't overflow. don't allow full_libname or any directory to be longer than 1024. */ if (_dl_strlen(full_libname) > 1024) goto goof; - pnt = libname = full_libname; while (*pnt) { if (*pnt == '/') libname = pnt + 1; diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c index 37d622dd8..d565b9290 100644 --- a/ldso/ldso/readelflib1.c +++ b/ldso/ldso/readelflib1.c @@ -164,13 +164,13 @@ struct elf_resolve *_dl_load_shared_library(int secure, char *libname; _dl_internal_error_number = 0; + pnt = libname = full_libname; /* quick hack to ensure mylibname buffer doesn't overflow. don't allow full_libname or any directory to be longer than 1024. */ if (_dl_strlen(full_libname) > 1024) goto goof; - pnt = libname = full_libname; while (*pnt) { if (*pnt == '/') libname = pnt + 1; |