Bug#643374: dis51: FTBFS: pass2.c:186:4: error: format not a string literal and no format arguments [-Werror=format-security]

2011-11-13 Thread Eric Alexander
tags 643374 +patch
thanks
Index: dis51-0.5/pass2.c
===
--- dis51-0.5.orig/pass2.c	2004-02-20 17:09:30.0 -0500
+++ dis51-0.5/pass2.c	2011-11-11 16:10:45.970149283 -0500
@@ -183,7 +183,7 @@
 			fprintf(ofile, "DB 85h  ; illegal opcode");
 		case 1:
 /* no operands */
-			fprintf(ofile, mnemonic[opcode]);
+			fprintf(ofile, "%s", mnemonic[opcode]);
 			break;
 		case 2:
 /* one immediate operand */


Bug#643374: dis51: FTBFS: pass2.c:186:4: error: format not a string literal and no format arguments [-Werror=format-security]

2011-09-27 Thread Didier Raboud
Source: dis51
Version: 0.5-1
Severity: serious
Tags: wheezy sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20110923 qa-ftbfs hardening-format-security hardening
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> gcc -c -I. -g -O2 -fstack-protector --param=ssp-buffer-size=4 
> -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wall 
> pass2.c -o pass2.o
> pass2.c: In function 'dis_inst2':
> pass2.c:186:4: error: format not a string literal and no format arguments 
> [-Werror=format-security]
> cc1: some warnings being treated as errors
> 
> make[1]: *** [pass2.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/09/23/dis51_0.5-1_lsid64.buildlog

This happened because since dpkg 1.16.0 [0], hardening flags are enabled 
under various conditions.

[0] http://lists.debian.org/debian-devel-announce/2011/09/msg1.html

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org