Skip to content

Commit

Permalink
Merge pull request #17 from crisluengo/patch-1
Browse files Browse the repository at this point in the history
Fix typo that cuases out-of-bounds read
  • Loading branch information
svi-os authored Aug 12, 2021
2 parents 8071939 + 7c94aad commit dd1f22f
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 dd1f22f

Please sign in to comment.