Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Thomas_Jensen1
Beginner
53 Views

Found a bug in facedetection.cpp

IPP samples, 7.0.3.050.
This code is a little bit buggy:
---
Ipp8u* src8u = ippiMalloc_8u_C1(roi.width, roi.height, &src8uStep);
if(0 == src8u)
return -1;

Ipp8u* buf = ippsMalloc_8u(bufSize);
if(0 == buf)
return -1;

status = ippiResizeSqrPixel_8u_C1R(pTmp, roi0, tmpStep, rect0, src8u,
src8uStep, dstRect, 1.0/factor,1.0/factor,
0.0, 0.0, IPPI_INTER_LANCZOS, buf);
if(ippStsNoErr != status)
return -1;

ippFree(buf);
---

If ippiResizeSqrPixel fails, buf is not freed.

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
53 Views

Hi Thomas,

thanks for catching this. That should be fixed in future.

Regards,
Vladimir
PaulF_IntelCorp
Employee
53 Views

Hello Thomas,

This bug has been addressed in the 7.0.4 release that is expected later this spring.

Paul
Chao_Y_Intel
Employee
53 Views

Hi,

IPP 7.0.4 is available now, which includes the fix for this problem.

Thanks,
Chao

Reply