OpenKMIP / libkmip

A C implementation of the KMIP specification.
Other
38 stars 25 forks source link

Add safety checks when encoding length values #52

Closed PeterHamilton closed 4 years ago

PeterHamilton commented 4 years ago

This change adds a new kmip_encode_length function that conducts a safe type conversion from the 64-bit buffer pointer delta to the signed 32-bit int that ultimately gets encoded. All encoding functions have been updated to use this new utility function.