Skip to content

Commit 76a375b

Browse files
v2.2: Fix incorrect array size in C SDK (backport of #5766) (#6357)
Fix incorrect array size in C SDK (#5766) Fix ka_num (cherry picked from commit f069f3b) Co-authored-by: Lucas Ste <[email protected]>
1 parent 98c6de1 commit 76a375b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform-tools-sdk/sbf/c/inc/sol/deserialize.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ static bool sol_deserialize(
126126

127127
params->program_id = (SolPubkey *) input;
128128
input += sizeof(SolPubkey);
129+
if (params->ka_num > ka_num) {
130+
params->ka_num = ka_num;
131+
}
129132

130133
return true;
131134
}

0 commit comments

Comments
 (0)