This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1000731] New: Incomplete buffer clear with memset() call
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Thu, 26 Mar 2009 13:33:15 +0000
- Subject: [Bug 1000731] New: Incomplete buffer clear with memset() call
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000731
Summary: Incomplete buffer clear with memset() call
Product: eCos
Version: CVS
Platform: Other (please specify)
URL: http://ecos.sourceware.org/cgi-
bin/cvsweb.cgi/~checkout~/ecos/host/tools/ecostest/commo
n/ResetAttributes.cpp?rev=1.4&content-
type=text/plain&cvsroot=ecos
OS/Version: Other
Status: UNCONFIRMED
Severity: minor
Priority: normal
Component: Other
AssignedTo: jifl@ecoscentric.com
ReportedBy: squatch@gmail.com
QAContact: ecos-bugs@ecos.sourceware.org
Class: ---
In the file ecos/host/tools/ecostest/common/ResetAttributes.cpp there
is a memset() call with an incorrect size argument, leading to an incomplete
buffer clear.
TCHAR buf[1+BUFSIZE];
memset(buf,0,BUFSIZE); // safety for string functions in IsValidReset
It appears that the size argument should be BUFSUZE+1.
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.