Skip to content

Commit

Permalink
Fixed typo in libics that caused out-of-bounds read. Fixes #81.
Browse files Browse the repository at this point in the history
  • Loading branch information
crisluengo committed Aug 12, 2021
1 parent 7db8485 commit d7d7155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/diplib_3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ title: "Changes DIPlib 3.1.0"

- `dip::MeanAbs()` and `dip::SumAbs()` could produce wrong results for complex inputs.

- libics had a typo that caused out-of-bounds read (#81).




Expand Down
2 changes: 1 addition & 1 deletion dependencies/libics/libics_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,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 d7d7155

Please sign in to comment.