Closed viglucci closed 2 years ago
Addresses #230
Usage of Buffer.allocUnsafe had the potential for leaking previously allocated memory in custom metadata headers.
Buffer.allocUnsafe
Fill buffer allocated for custom metadata header prior to writing.
Buffer allocated for custom metadata header is prevented from containing values from previously allocated memory.
Addresses #230
Motivation:
Usage of
Buffer.allocUnsafe
had the potential for leaking previously allocated memory in custom metadata headers.Modifications:
Fill buffer allocated for custom metadata header prior to writing.
Result:
Buffer allocated for custom metadata header is prevented from containing values from previously allocated memory.