Notice: We have migrated to GitLab launching 2024-05-01 see here:

#595 closed defect (fixed)

Buffer overrun in sp13

Reported by: querbach Owned by: Joel Sherrill
Priority: lowest Milestone: 2
Component: unspecified Version: 4.6
Severity: normal Keywords:
Cc: bugs@… Blocked By:


Fill_buffer() in fillbuff.c overruns the supplied buffer due to confusion in the definition of MESSAGE_SIZE. Some files in the sp13 test treat MESSAGE_SIZE as a count of bytes, others treat it as a count of longs.

RTEMS Version (Snapshot as of 20040318)

Intec SS555 (MPC5xx) port.
Built under Debian 3.0.

Run sp13 on a system with something important just after the buffer.

Attachments (1)

rtems-20040318-sp13-fix.patch (4.6 KB) - added by querbach on 12/03/06 at 13:31:12.

Download all attachments as: .zip

Change History (3)

comment:1 Changed on 03/30/04 at 18:50:19 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Patch applied to CVS trunk and 4.6 branch.

This problem has lurked a long time since this test was created in the days when messages were 16 bytes (4 u32's) long per RTEID The conversion must have missed the overwrite of the buffer and no one ever got as unlucky as you did with memory layout.

Changed on 12/03/06 at 13:31:12 by querbach


comment:2 Changed on 10/10/17 at 06:46:55 by Sebastian Huber

Component: testingunspecified
Note: See TracTickets for help on using tickets.