From: SourceForge.net <no...@so...> - 2005-07-07 17:58:38
|
Support Requests item #1234298, was opened at 2005-07-07 13:12 Message generated for change (Settings changed) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1234298&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: MinGW Group: None Status: Open Priority: 5 Submitted By: That James (that_james) >Assigned to: Nobody/Anonymous (nobody) Summary: long longs incorrectly handled by fooprintf() Initial Comment: Using the MinGW packaged version of GCC on WinXP SP2, compiling and running the following code displays the value of b as zero, regardless of its actual value. There are similar (and presumably related) issues with mixing anything at all With %llu/%lld formats in all fooprintf() code. I'm guessing it's a buffer overflow Thing. #include <stdio.h> int main() { long long a, b; a = 0x1234; b = 0x5678; printf ( "a = %lld, b = %lld\n", a, b ); exit(0); } I've checked this with GCC bugs over at bugzilla, and they tell me it's not a GCC issue, so apaprently it's specific to MinGW's stdlibs. Makes no odds whether it's compiled with a simple "gcc foo.c" or with optimisation, etc. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1234298&group_id=2435 |