Skip to content

Commit 174797d

Browse files
committed
check fingerprints value type
1 parent 22cc481 commit 174797d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sentry_scope.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,11 @@ void
627627
sentry_scope_set_fingerprints(
628628
sentry_scope_t *scope, sentry_value_t fingerprints)
629629
{
630+
if (sentry_value_get_type(fingerprints) != SENTRY_VALUE_TYPE_LIST) {
631+
SENTRY_WARN("invalid fingerprints type, expected list");
632+
return;
633+
}
634+
630635
sentry_value_decref(scope->fingerprint);
631636
scope->fingerprint = fingerprints;
632637
}

0 commit comments

Comments
 (0)