mirror of
https://github.com/aziascreations/PB-MessagePack.git
synced 2026-11-24 18:28:44 +01:00
Fixed iterable elements DOS via depth, Fixed memory access bug, Improved default behaviour
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -95,7 +95,9 @@ Procedure.i MsgPackWrapMsgBuffer(*Buffer, BufferSize.i, GiveOwnership.b = #False
|
||||
ProcedureReturn *ReturnedValue
|
||||
EndProcedure
|
||||
|
||||
Procedure.b MsgPackFree(*MsgPackData.MsgPackData, FreeDataBuffer.b = #False)
|
||||
; Frees a structure, and its buffer too if `FreeDataBuffer` is `#True`.
|
||||
; `FreeDataBuffer` has no default on purpose: forgetting it either leaks the buffer or frees one that's still in use.
|
||||
Procedure.b MsgPackFree(*MsgPackData.MsgPackData, FreeDataBuffer.b)
|
||||
If Not *MsgPackData
|
||||
ProcedureReturn #False
|
||||
EndIf
|
||||
|
||||
Reference in New Issue
Block a user