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


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 05/22/12 at 08:05:04.

Download all attachments as: .zip

Change History (4)

Changed on 05/22/12 at 08:05:04 by Sebastian Huber


comment:1 Changed on 05/22/12 at 08:05:26 by Sebastian Huber

Owner: changed from Eric Norum to Sebastian Huber

comment:2 Changed on 06/06/12 at 11:05:32 by Sebastian Huber

Resolution: fixed
Status: newclosed

comment:3 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

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.