[Bug 1790] New: Libblock. Flash disk: Wrong memset parameters.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed May 11 08:11:53 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1790

           Summary: Libblock. Flash disk: Wrong memset parameters.
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: nopscmn at gmail.com


In flash disk block device implementation (flashdisk.c), function
rtems_fdisk_read_block has next code:

  bc = &fd->blocks[block];

  if (!bc->segment)
  {
#if RTEMS_FDISK_TRACE
    rtems_fdisk_info (fd, "read-block: no segment mapping: %d", block);
#endif
    memset (buffer, fd->block_size, 0xff);
    return 0;
  }

I think, memset parameters wrong. It must be: memset (buffer, 0xff,
fd->block_size).

-- 
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