#3437 closed enhancement (fixed)

Replace use of printk() in free() with a fatal error

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: unspecified Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

An invalid heap usage such as a double free is usually a fatal error. Replace the use of printk() in free() with a fatal error. Introduce a new fatal error source for heap errors.

Change History (2)

comment:1 Changed on Jun 5, 2018 at 7:13:27 AM by Sebastian Huber <sebastian.huber@…>

In de9b7d7/rtems:

Add RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE

An invalid heap usage such as a double free is usually a fatal error
since this indicates a use after free. Replace the use of printk() in
free() with a fatal error.

Update #3437.

comment:2 Changed on Jun 5, 2018 at 7:14:01 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In aaf9c78/rtems-docs:

c-user: RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE

Close #3437.

Note: See TracTickets for help on using tickets.