This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17038] ABI impacting issue in time_put
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2010 11:57:42 -0000
- Subject: [Bug libstdc++/17038] ABI impacting issue in time_put
- References: <bug-17038-16141@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from paolo dot carlini at oracle dot com 2010-01-06 11:57 -------
Now the buffer is 128 chars.
On second thought, I don't think checking the return value of strftime and all
the added complexity are worth the trouble: given the semantics of the function
and the actual data in existing named locales the maximum size is bounded and
certainly <~ 200. Also note that there are no risks of memory corruption. If
somebody reports a truncated output for some exotic locale, we'll increase the
buffer a bit and everything will be fine.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17038