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:
2026-11-02 23:41:53 +01:00
parent 30ad7aff2a
commit e19362a479
9 changed files with 355 additions and 11 deletions
+3 -1
View File
@@ -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