[PATCH] libyasm can't compile in the Debug Configuration by Visual
Studio
Masaru Tsuchiyama
tsuchiyama at asahi-net.email.ne.jp
Sat Sep 24 18:23:45 PDT 2005
Hi.
I'll send a patch for the bug that libyasm can't compile in
the Debug Configuration by Visual Studio.
In the Release Configuration, FILTERMODE is defined.But
in the Debug Configuration, FILTERMODE is not defined.
run.bat is designed for FILTERMODE-defined genmodule.c.
yasm/libyasm/genmodule.c has the following code.
} else if (strncmp(str, "EXTERN_LIST", 11) == 0) {
for (i=0; i<num_modules; i++) {
strcpy(str, modules[i]);
strp = str;
while (*strp != '\0' && *strp != '_') {
len++;
strp++;
}
*strp++ = '\0';
fprintf(out, "extern yasm_%s_module yasm_%s_LTX_%s;\n",
str, strp, str);
}
}
'len' is used before initialized.
following message is appeared when genmodule is compiled by VisualStudio
Run-Time Check Failure #3 - The variable 'len' is being used without
being defined.
Masaru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: application/octet-stream
Size: 1055 bytes
Desc: not available
Url : http://cvs.tortall.net/pipermail/yasm-devel/attachments/20050924/8fbc5d08/patch.obj
More information about the yasm-devel
mailing list