<i>64 bit format command behaves differently to the 32bit forma</i> status still Open with 4 other changes
by
.
D 2002-02-19T06:04:55
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\ndgp\ssays\sthat\ssizeof(int)\s==\s4,\swhile\s\n\s\s\s\s\s\s\s\s\s\s\s\s\s\ssizeof(long)\s==\ssizeof(void*)\s==\s8.\n\nUINT_MAX\sis\s0xffffffff.\n\nThe\sproblem\sis\sthat\s0xfffffffa\s<\sUINT_MAX.\s\sThe\stest\sat\sline\s2108\nof\stclCmdAH.c\sreads:\n\nif\s((unsigned\slong)\sintValue\s>\sUINT_MAX)\n\nThis\stest\sdetects\sthat\s0xfffffffa\scan\sbe\sformatted\swith\s%d\ninstead\sof\s%ld.\s\sIt\scannot.\n\nIn\sany\scase,\sthe\scode\sat\sline\s2211:\n\nsprintf(dst,\snewFormat,\sintValue);\n\nis\ssurely\snot\scorrect.\s\sThe\scase\sthat\swe're\stesting\shere\sgets\sthere\nwith\s"%d"\sin\snewFormat,\sbut\s"intValue"\sis\sa\slong:\sthat\ssurely\scannot\nbe\sexpected\sto\swork!\n
J login kennykb
J mimetype text/plain
J username kennykb
K 219223ffffffffffffffffffffffffffffffffff
U kennykb
Z bf0bd1c00be8317f6e460c6d326d6477