#2066 closed defect (fixed)

RPC library fix for short enums

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 4.11
Component: network/legacy Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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.

Attachments (1)

0001-librpc-Fix-for-short-enums.patch (5.3 KB) - added by Sebastian Huber on May 22, 2012 at 8:05:04 AM.
Patch.

Download all attachments as: .zip

Change History (4)

Changed on May 22, 2012 at 8:05:04 AM by Sebastian Huber

Patch.

comment:1 Changed on May 22, 2012 at 8:05:26 AM by Sebastian Huber

Owner: changed from Eric Norum to Sebastian Huber

comment:3 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.