CWE-131

Incorrect Calculation of Buffer Size

Description

The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.