IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

#723 closed defect (later)

psMemCheckType warning

Reported by: David.Robbins@… Owned by: Paul Price
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

psMemCheckType (& all of the corresponding types) seg faults if passed a
non-dynamically allocated variable. For instance, the following will produce a
seg fault,

psSphere temp;
psMemCheckType(PS_DATA_SPHERE, &temp);

Because this function is forced to use the deallocator to check the type, there
is no real way to fix this. We suggest simply adding a comment or warning to
the documentation concerning this issue.

Change History (1)

comment:1 by Paul Price, 20 years ago

Resolution: later
Status: newclosed

The prototype for these functions are:

bool psMemCheckSphere(psPtr ptr);

We have already noted that "psPtr" means that the user should pass a pointer
that has a psMemBlock attached.

I wouldn't worry too much about these just yet, because we're considering
changing the system a bit (see bug 690).

Note: See TracTickets for help on using tickets.