[Bug 2075] New: NFS using uninitialized heap memory
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Sat Sep 29 11:17:51 UTC 2012
https://www.rtems.org/bugzilla/show_bug.cgi?id=2075
Bug #: 2075
Summary: NFS using uninitialized heap memory
Classification: Unclassified
Product: RTEMS
Version: HEAD
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: major
Priority: P3
Component: filesystem
AssignedTo: chrisj at rtems.org
ReportedBy: dufault at hda.com
Created attachment 1485
--> https://www.rtems.org/bugzilla/attachment.cgi?id=1485
Change malloc to calloc to work around NFS crash
I've updated to the head and NFS is crashing in strdup() called from
nfs_move_node():
(gdb) print dir->serporid.serporid_u.serporid.arg_u
$19 = {diroparg = {
name = 0xcfcfcfcf
"\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374\374",
<incomplete sequence \374>...}, sattrarg = {
"0xcfcfcfcf" is what is put in by rtems_malloc_dirty_memory. I don't know the
correct fix, but changing two suspicious mallocs() to callocs() hides the
problem.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list