[Sugar-devel] Compiler warnings building olpcsound

Jigish Gohil cyberorg at opensuse.org
Mon Apr 27 04:09:13 EDT 2009


Hi

I am getting the following message building olpcsound on openSUSE
Build Service. Without fix for this issue the packages built will not
get published. Could someone who knows what it means and what needs
fixing provide patch?

We are using Csound5.10.1

Thanks

Jigish

I: Statement might be overflowing a buffer in strncat. Common mistake:
BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the
left over size as 3rd argument
GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)
E: olpcsound bufferoverflowstrncat OOps/dumpf.c:178, 181, 187, 190

I: Program causes undefined operation
(likely same variable used twiceand post/pre incremented in the same
expression).
e.g. x = x++; Split it in two operations.
E: olpcsound sequence-point Opcodes/gab/sliderTable.c:396, 420, 444, 467


More information about the Sugar-devel mailing list