← Back to team overview

cuneiform team mailing list archive

[Bug 520867] Re: Build-error with CFLAG "-Werror=format-security"

 

Hi there,

I've played around a bit and found out that following files cause the build-process to break:
* cuneiform_src/Kern/rstr/src/p2_cour.c  /  line 103
* cuneiform_src/Kern/std/src/stdconsl.cpp  /  line 117
* cuneiform_src/Kern/std/src/stdconsl.cpp  /  line 154
* cuneiform_src/Kern/std/src/stdprt.cpp  /  line 282

I don't have coding-skills at all, but I followed a stupid rule found on
Mandrivas WIKI to handle these kind of "-Werror=format-security"-issues.
And it seems to solve the problem - I can build cuneiform now.

Please have a look at the patch I've attached if it's o.k. like this or
not.

** Patch added: "Patch wich seems so solve issue"
   http://launchpadlibrarian.net/39143762/cuneiform-werror.patch

-- 
Build-error with CFLAG "-Werror=format-security"
https://bugs.launchpad.net/bugs/520867
You received this bug notification because you are a member of Cuneiform
Linux, which is a direct subscriber.

Status in Linux port of Cuneiform: Fix Committed

Bug description:
As already mentioned in an old bug (#362224, comment #16), cuneiform has issues with the CFLAG mentioned above which is used by default with Mandriva's %cmake-macro.

Setting this CFLAG leads in several build-errors ("format not a string literal and no format arguments") and the build breaks.

If I disable this CFLAG the source does compile fine.
But this could also be a security issue then, because this CFLAG is used by default to prevent possible format strings-attacks.





References