#1330 closed defect (fixed)

free.c: Print of wrong address in error message

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 4.8
Component: score Version: 4.8
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Email from Tim Cussins <timcussins@…>. In cpukit/libcsupport/free.c

if ( !_Protected_heap_Free( &RTEMS_Malloc_Heap, ptr ) ) {

printk( "Program heap: free of bad pointer %p -- range %p - %p \n",

ptr,

  • RTEMS_Malloc_Heap.start,

+ RTEMS_Malloc_Heap.begin,

RTEMS_Malloc_Heap.end

);

}

In a Heap_Control, 'start' is a Heap_Block*, 'begin' is a void*, which I guess is the one we want here.

Change History (1)

comment:1 Changed on 10/15/08 at 16:40:52 by Joel Sherrill

Resolution: fixed
Status: newclosed

Patch committed to head and 4.9 branch

Note: See TracTickets for help on using tickets.