From: Alexandre Oliva Date: Sat, 9 Jan 1999 15:35:32 +0000 (+0000) Subject: * libltdl/ltdl.c (lt_dlopen): missing strlen in bound test X-Git-Tag: automake_1-4~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c107321bbd144057c7caf759b1ddd0fd5d61a643;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (lt_dlopen): missing strlen in bound test --- diff --git a/ChangeLog b/ChangeLog index b5dbe69f6..7ee149074 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-01-09 Alexandre Oliva + + * libltdl/ltdl.c (lt_dlopen): missing strlen in bound test + 1999-01-09 Thomas Tanner * NEWS: support for BSD/OS 4.x was not documented diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 516bd50ff..242416186 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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] = '_';