The first one is a false-positive. The other one can be fixed with an extra check for zero length at the if-statement that uses a modulus.
Bug Group ▾ Bug Type File Line Path Length
Unix API Undefined allocation of 0 bytes lib /common /SimpleConfigLoader.cpp 214 12 View Report Report Bug Open File
Unix API Undefined allocation of 0 bytes bin /util /softhsm2-util.cpp 574 7 View Report Report Bug Open File