[Lsb-messages] /var/www/bzr/lsb/devel/misc-test r2410: fix elfchk bug found by Coverity scan (bug 3867)

Mats Wichmann mats at linuxfoundation.org
Fri Nov 1 13:21:03 UTC 2013


------------------------------------------------------------
revno: 2410
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: misc-test
timestamp: Fri 2013-11-01 07:21:03 -0600
message:
  fix elfchk bug found by Coverity scan (bug 3867)
modified:
  elfchk/proghdr.c
  package/Makefile
-------------- next part --------------
=== modified file 'elfchk/proghdr.c'
--- a/elfchk/proghdr.c	2010-12-01 17:00:22 +0000
+++ b/elfchk/proghdr.c	2013-11-01 13:21:03 +0000
@@ -369,7 +369,7 @@
 	  fprintf(stderr, "%s\n", tmp_string);
 	  fail = 1;
 	}
-	if (first_note && file->saddr[i].sh_offset != hdr->p_offset) {
+	if (file->saddr[i].sh_offset != hdr->p_offset) {
 	  snprintf(tmp_string, TMP_STRING_SIZE,
 		   "NOTE section offset does not match Segment offset: %#x vs. %#x",
 		   (unsigned int) file->saddr[i].sh_offset,

=== modified file 'package/Makefile'
--- a/package/Makefile	2013-10-29 13:47:45 +0000
+++ b/package/Makefile	2013-11-01 13:21:03 +0000
@@ -24,7 +24,7 @@
 
 # We define this here instead of directly in the spec file as
 # we need to be able to work out what the produced rpm files will be called
-RPM_PACKAGE_RELEASE=1
+RPM_PACKAGE_RELEASE=2
 
 # Derive date string for daily snapshots
 ISO_DATE:=$(shell date +"%Y%m%d")



More information about the lsb-messages mailing list