This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001490] C99 snprintf() does not include terminated null in truncated strings


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001490

--- Comment #3 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2012-08-07 17:44:01 BST ---
(In reply to comment #2)
> > I have verified the issue, and that the attached patch solves it.
> > However, I have not run the affected ecos tests in this patch
> > (Although I have run the test suite for our project).
> 
> Note: the test case as it was attached fails in "snprintf double test
> #2", which has to be changed like the other test cases.

Thank you for testing. But I do not see any "snprintf double test #2" in
CVS sources

  % grep -nr 'printf\W\+double' packages/language/c/
  packages/language/c/libc/stdio/current/tests/sprintf2.c:169:                 
     "snprintf double test #1");
  packages/language/c/libc/stdio/current/tests/sprintf2.c:172:                 
     "snprintf double test #1 return code");

Could you clarify, please, what the test does not pass?

Sergei

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]