libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: 2-gary-argz-off-by-one.patch


From: Gary V. Vaughan
Subject: FYI: 2-gary-argz-off-by-one.patch
Date: Fri, 30 May 2003 17:28:29 +0100
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3) Gecko/20030312

Similarly, discovered this while trying to get CVS m4 working on my non-GNU
libc darwin6.6 box.  Applied to HEAD and branch-1-5.

Cheers,
        Gary.
--
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/
Index: ChangeLog
from  Gary V. Vaughan  <address@hidden>

        * libltdl/ltdl.c (argz_insert): Corrected an off by one error when
        checking that before is not out of range.

Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.175
diff -u -p -u -r1.175 ltdl.c
--- libltdl/ltdl.c 30 May 2003 15:21:46 -0000 1.175
+++ libltdl/ltdl.c 30 May 2003 15:23:32 -0000
@@ -682,7 +682,7 @@ argz_insert (pargz, pargz_len, before, e
   /* This probably indicates a programmer error, but to preserve
      semantics, scan back to the start of an entry if BEFORE points
      into the middle of it.  */
-  while ((before >= *pargz) && (before[-1] != LT_EOS_CHAR))
+  while ((before > *pargz) && (before[-1] != LT_EOS_CHAR))
     --before;
 
   {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]