vapier      14/11/05 02:02:03

  Modified:             scanelf.c
  Log:
  scanelf: make sure to clear the symtab inputs when the section does not match 
#527490 by Juergen Rose

Revision  Changes    Path
1.268                pax-utils/scanelf.c

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?rev=1.268&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?rev=1.268&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?r1=1.267&r2=1.268

Index: scanelf.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v
retrieving revision 1.267
retrieving revision 1.268
diff -u -r1.267 -r1.268
--- scanelf.c   19 Oct 2014 07:31:20 -0000      1.267
+++ scanelf.c   5 Nov 2014 02:02:03 -0000       1.268
@@ -1,13 +1,13 @@
 /*
  * Copyright 2003-2012 Gentoo Foundation
  * Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.267 
2014/10/19 07:31:20 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.268 
2014/11/05 02:02:03 vapier Exp $
  *
  * Copyright 2003-2012 Ned Ludd        - <[email protected]>
  * Copyright 2004-2012 Mike Frysinger  - <[email protected]>
  */
 
-static const char rcsid[] = "$Id: scanelf.c,v 1.267 2014/10/19 07:31:20 vapier 
Exp $";
+static const char rcsid[] = "$Id: scanelf.c,v 1.268 2014/11/05 02:02:03 vapier 
Exp $";
 const char argv0[] = "scanelf";
 
 #include "paxinc.h"
@@ -214,6 +214,8 @@
                *sym = dynsym; \
                *str = dynstr; \
                return; \
+       } else { \
+               *sym = *str = NULL; \
        } \
        }
        GET_SYMTABS(32)




Reply via email to