IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#299 closed defect (fixed)

psMatrixLUD does not accept NULL output

Reported by: Paul Price Owned by: robert.desonia@…
Priority: high Milestone:
Component: math Version: 0.4.0
Severity: major Keywords:
Cc:

Description

psMatrixLUD fails with a SEGV when outImage == NULL, since it fails to allocate
the image. The function worked successfully in rel3.

The bug is due, I believe, to psImageRecycle not altering outImage:

psImageRecycle(outImage, inImage->numCols, inImage->numRows,

inImage->type.type);
leaves outImage untouched, so should be:

outImage = psImageRecycle(outImage, inImage->numCols, inImage->numRows,

inImage->type.type);

Temporary workaround is to allocate the matrix before calling psMatrixLUD.

Change History (4)

comment:1 by robert.desonia@…, 21 years ago

Status: newassigned

comment:2 by robert.desonia@…, 21 years ago

Resolution: fixed
Status: assignedclosed

This was a problem not only in psMatrixLUD, but other functions in
psMatrix.c that used psImageRecycle.

The fix is in the CVS head as well as in the rel4 branch (e.g., cvs co -r rel4
psLib).

-rdd

comment:3 by Paul Price, 21 years ago

Keywords: VERIFIED added

comment:4 by Paul Price, 21 years ago

Keywords: VERIFIED removed
Note: See TracTickets for help on using tickets.