IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#343 closed defect (fixed)

psLib prevents the use of malloc, realloc, calloc, & free

Reported by: jhoblitt Owned by: jhoblitt
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: critical Keywords: IPP-doc
Cc:

Description

sysUtils/psMemory.h uses the GCC poison pragma on malloc, realloc, calloc, &
free. This causes serious interoperability issues with 3rd party code.

The example below will not compile.

#include <pslib.h>
#include <stdlib.h>

int main () {

int *foo;

foo = malloc(sizeof(foo));

}

Change History (5)

comment:1 by jhoblitt, 21 years ago

bug_group: PSLib?IPP-doc?
Component: systemPSLib SDRS
Keywords: IPP-doc added; PSLib removed
product: PSLibIPP-doc
Version: rel5unspecified

comment:2 by jhoblitt, 21 years ago

Owner: changed from robert.desonia@… to Paul Price

comment:3 by Paul Price, 21 years ago

Owner: changed from Paul Price to jhoblitt

comment:4 by jhoblitt, 21 years ago

Resolution: fixed
Status: newclosed

This was actually specified by the SDRS. The SDRS has been updated to specifiy
that this behavior should be kept internal to psLib unless requested by the
client code.

comment:5 by jhoblitt, 21 years ago

blocked: 354
Note: See TracTickets for help on using tickets.