Skip to content

Commit

Permalink
hardened TRttiCustomList.Count[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Nov 7, 2023
1 parent 2a39c50 commit 071b7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/mormot.core.rtti.pas
Expand Up @@ -2631,7 +2631,8 @@ TRttiCustomList = class
// - should be a reentrant lock, even if seldom called
RegisterSafe: TOSLock;
/// how many TRttiCustom instances have been registered for a given type
Counts: array[succ(low(TRttiKind)) .. high(TRttiKind)] of integer;
// - we include rkUnknown for safety
Counts: array[TRttiKind] of integer;
/// initialize the RTTI list
constructor Create;
/// finalize the RTTI list
Expand Down
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
@@ -1 +1 @@
'2.1.6271'
'2.1.6272'

0 comments on commit 071b7ab

Please sign in to comment.