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

Safety of LZ4 codec in IPP

Francesc_Alted
Beginner
593 Views

Hi.  I am very pleased to see a considerable boost in performance of the LZ4 codec in IPP.  However, I am a bit perplex to not find a safe version for the LZ4 decoding functions, although there are certainly safe versions for encoding, as can be seen at: https://software.intel.com/en-us/ipp-dev-reference-lz4-compression-functions.

My assumption is that the decoding functions are safe by default.  Can you confirm?

Thanks in advance

0 Kudos
2 Replies
Sergey_K_Intel
Employee
593 Views

Hi !

I cal confirm this. LZ4 decoder controls boundaries of source and destination buffers. The decoder will not step beyond limits of source/destination.

Do you have any concerns about this?

0 Kudos
Francesc_Alted
Beginner
593 Views

Right.  So if the decoder cannot step beyond the limits of destination buffer then all my concerns are gone :)

Thanks!

0 Kudos
Reply