Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Found a bug in facedetection.cpp

Thomas_Jensen1
Beginner
160 Views
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
160 Views
Hi Thomas,

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

Regards,
Vladimir
0 Kudos
PaulF_IntelCorp
Employee
160 Views
Hello Thomas,

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

Paul
0 Kudos
Chao_Y_Intel
Employee
160 Views

Hi,

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

Thanks,
Chao

0 Kudos
Reply