Skip to content

Commit

Permalink
i.albedo: Fix out of bounds access for albedo histogram (#3247)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
  • Loading branch information
ymdatta committed Jan 27, 2024
1 parent 3693974 commit 3e874b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagery/i.albedo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ int main(int argc, char *argv[])
}
}
/* Cloud/Snow histogram higher bound */
for (i = 100; i > i_peak3; i--) {
for (i = 99; i > i_peak3; i--) {
if (histogram[i] < bottom3b) {
bottom3b = histogram[i];
/* i_bottom3b = i; */
Expand Down

0 comments on commit 3e874b9

Please sign in to comment.