[Bug 2066] New: RPC library fix for short enums

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue May 22 09:05:04 UTC 2012


             Bug #: 2066
           Summary: RPC library fix for short enums
    Classification: Unclassified
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: networking
        AssignedTo: norume at aps.anl.gov
        ReportedBy: sebastian.huber at embedded-brains.de

Created attachment 1474
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1474

The XDR library has a problem on architectures with short enums like the
default ARM EABI.  Short enums means that the size of the enum type is
variable and the smallest integer type to hold all enum values will be
selected.  For many enums this is char.  The XDR library uses int32_t
for enum_t.  There are several evil casts from an enum type to enum_t
which leads to invalid memory accesses on short enum architectures.  A
workaround is to add appropriate dummy enum values.

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