GNOME Bugzilla – Bug 627420
ODF import crazy format
Last modified: 2010-08-20 05:00:43 UTC
Created attachment 168313 [details] Corrupted ods file (gdb) p *state->cur_format.accum $4 = {str = 0x7fff6d86e010 "mm\":\"ss.", '0' <repeats 192 times>..., len = 978054072, allocated_len = 1073741824} That's a mighty long format! OO_DATE_SECONDS_PRINT_SECONDS should limit the number of digits to (say) 6. And it should use go_string_append_c_n.
The comment of limits and go_string_append_c_n applies here too: while (min_n_digits-- > 0) g_string_append_c (state->cur_format.accum, '0'); (Multiple occurrences)
go_string_append_c_n ? I didn't even know that existed.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.