From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Farine To: ecos-discuss@sources.redhat.com Subject: [ECOS] floating point output Date: Thu, 09 Aug 2001 10:34:00 -0000 Message-id: <86elqlb0l9.fsf@halftrack.hq.acn-group.ch> X-SW-Source: 2001-08/msg00283.html Hi, When using printf() and friends with special floating point numbers, i.e. x such as finite(x) returns 0, a buffer overflow occurs. The attached patch adds checks to the cvt() routine to handle the NaN & Inf cases separately. Is this the correct thing to do or should the application test for special cases (I do not have the C99 standard document to verify this). Robin