Skip to content

Commit

Permalink
REF: Updated packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Automation51D authored and Automation51D committed Jun 19, 2024
1 parent 6df3682 commit 3b6b33a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dd/device-detection-cxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -14105,7 +14105,8 @@ static int constructPseudoEvidence(
}

// If this is a subsequent segment value then add the separator.
if (i != 0) {
// make sure that we don't cause heap overflow by overwriting the terminating \0 (at position max - 1)
if (i != 0 && current < max - 1) {
*current = PSEUDO_HEADER_SEP;
current++;
}
Expand Down

0 comments on commit 3b6b33a

Please sign in to comment.