Closed xhuan28 closed 1 year ago
In pcpmont_set.c ,
__INLINE int cpGetBitSize(Ipp32u offset, Ipp32u val) { int bitSize = 32; if (val == 0) return 0; while ((val & (1 << bitSize)) == 0) bitSize--; return (int)offset + bitSize; }
1 << 32 may lead to an undefined behavior issue.
1 << 32
https://github.com/intel/ipp-crypto/pull/56 may fix this issue.
In pcpmont_set.c ,
1 << 32
may lead to an undefined behavior issue.