Closed wuyang-dl closed 1 year ago
If pix1 is valid, making a copy should succeed unless it is too large.
What are the dimensions of pix1?
Dan
Thank you for reporting this. I put in a check as you suggested to make sure that pixd is valid.
should be OK now
hi, here is a malloc error coredump.
blend.c:1786
pixd = pixCopy(NULL, pix1); --------- malloc error, need check pixd is null or not.
if pixd is null, blend.c:1818( dval32 = *(lined + j + x); cause coredump)
fix: pixd = pixCopy(NULL, pix1); pixDestroy(&pix1); if (!pixd) return (PIX *)ERROR_PTR("pixd not defined", procName, NULL);