[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: fix null ptr deref for bogus .la file
From: |
Ralf Wildenhues |
Subject: |
FYI: fix null ptr deref for bogus .la file |
Date: |
Thu, 16 Dec 2004 13:01:26 +0100 |
User-agent: |
Mutt/1.4.1i |
As this is an obvious bugfix, I applied this to all three branches
without previous asking. :-)
(My rewrite of lalib parsing for HEAD might be resurrected eventually.)
Regards,
Ralf
2004-12-16 Ralf Wildenhues <address@hidden>
* libltdl/ltdl.c (trim): Return error rather than do bogus
null pointer arithmetic when parsing a malformed .la file.
Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.227
diff -u -r1.227 ltdl.c
--- libltdl/ltdl.c 29 Nov 2004 21:06:24 -0000 1.227
+++ libltdl/ltdl.c 16 Dec 2004 10:10:51 -0000
@@ -901,6 +901,9 @@
FREE (*dest);
+ if (!end)
+ return 1;
+
if (len > 3 && str[0] == '\'')
{
tmp = MALLOC (char, end - str);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: fix null ptr deref for bogus .la file,
Ralf Wildenhues <=