Short: sprintf() on big floats crashes the driver
Date: 980420
Type: Bug
State: Fixed
The following code causes a segmentation fault by a buffer overrun:
void test() {
sprintf("%.5f",
99999999129532841420853412051438322515563209673591926319148179520720936003174400.00000 *
99999999129532841420853412051438322515563209673591926319148179520720936003174400.00000 );
}
Solution:
Increased the temporary buffer for float preparation in sprintf() and added
a sanity test just in case.