]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (lt_dlopen): missing strlen in bound test
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 9 Jan 1999 15:35:32 +0000 (15:35 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 9 Jan 1999 15:35:32 +0000 (15:35 +0000)
ChangeLog
libltdl/ltdl.c

index b5dbe69f6f5e3bd23d511481d8ceb9803fcf451b..7ee14907422abc96cef77f27c5bcd1aca8551709 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1999-01-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * libltdl/ltdl.c (lt_dlopen): missing strlen in bound test
+
 1999-01-09  Thomas Tanner  <tanner@gmx.de>
 
        * NEWS: support for BSD/OS 4.x was not documented
index 516bd50ffa9f50ca0e71e9d2195e51ae70be9f3b..242416186e84af42cb76441b434b5baf6162723d 100644 (file)
@@ -767,11 +767,11 @@ lt_dlopen (filename)
                        return 0;
                }
                /* extract the module name from the file name */
-               if (basename >= MAX_FILENAME)
+               if (strlen(basename) >= MAX_FILENAME)
                        return 0;
                strcpy(tmp, basename);
                tmp[ext - basename] = '\0';
-               /* canonicalize the modul name */               
+               /* canonicalize the module name */
                for (i = 0; i < ext - basename; i++)
                        if (!isalnum(tmp[i]))
                                tmp[i] = '_';