← Back to team overview

cuneiform team mailing list archive

[Bug 640051] Re: Type mismatch: va_list and char*

 

My reading of the source seems to indicate that this variable number of
arguments function is called and it calls another variable number of
arguments function. Without knowing how many arguments it got. Is this
even possible to do portably?

Another thing is that as far as I know, none of these functions is ever
called. So commenting the contents out with #ifdef WIN32 or something
seems quite reasonable.

-- 
Type mismatch: va_list and char*
https://bugs.launchpad.net/bugs/640051
You received this bug notification because you are a member of Cuneiform
Linux, which is the registrant for Cuneiform for Linux.

Status in Linux port of Cuneiform: New
Status in “cuneiform” package in Debian: Unknown

Bug description:
In several functions of Kern/hdebug/__snp.c (in LDPUMA_ConsoleN, LDPUMA_StatusLine, LDPUMA_MessageBoxOk, LDPUMA_MessageBoxYesNo, LDPUMA_FPrintf1024 functions) a function expecting a char* is called with a va_list argument. On some architectures[0] such a code will not ever compile, because va_list is not a pointer; on some othera, it will lead to a crash if the code in question is ever reached.

[0] E.g. ARM with GNU EABI: https://buildd.debian.org/fetch.cgi?&pkg=cuneiform&ver=1.0.0%2Bdfsg-1&arch=armel&stamp=1284497466





References