Skip to content

Commit

Permalink
Fix typo that cuases out-of-bounds read
Browse files Browse the repository at this point in the history
  • Loading branch information
crisluengo authored Aug 12, 2021
1 parent 8071939 commit 7c94aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libics_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ Ics_Error IcsReadIcs(Ics_Header *icsStruct,
for (sj = 0, si = 0; si < parameters; si++) {
if (si == bits) {
icsStruct->imel.origin = origin[si];
icsStruct->imel.scale = scale[i];
icsStruct->imel.scale = scale[si];
strcpy(icsStruct->imel.unit, unit[si]);
} else {
icsStruct->dim[sj].size = sizes[si];
Expand Down

0 comments on commit 7c94aad

Please sign in to comment.