#299 closed defect (fixed)
psMatrixLUD does not accept NULL output
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| 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 , 21 years ago
| Status: | new → assigned |
|---|
comment:2 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 21 years ago
| Keywords: | VERIFIED added |
|---|
comment:4 by , 21 years ago
| Keywords: | VERIFIED removed |
|---|
Note:
See TracTickets
for help on using tickets.

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