From 3c0655ca67468e142771513b1b3ef2c2f6bf0a40 Mon Sep 17 00:00:00 2001 From: James Noss Date: Wed, 17 May 2017 12:42:59 -0400 Subject: [PATCH] WFC3 CTE - fix out of bounds memory access fixes #61 Signed-off-by: James Noss --- pkg/wfc3/calwf3/wf3cte/wf3cte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/wfc3/calwf3/wf3cte/wf3cte.c b/pkg/wfc3/calwf3/wf3cte/wf3cte.c index e22314cc3..83cf2edfb 100644 --- a/pkg/wfc3/calwf3/wf3cte/wf3cte.c +++ b/pkg/wfc3/calwf3/wf3cte/wf3cte.c @@ -997,7 +997,7 @@ int find_dadj(int i ,int j, double obsloc[][RAZ_ROWS], double rszloc[][RAZ_ROWS] dval9 = 0.; /*COMPARE THE SURROUNDING PIXELS*/ - if (i==1 && RAZ_ROWS-1>=j && j>0 ) { + if (i==1 && RAZ_ROWS-1>j && j>0 ) { dval9 = obsloc[i][j-1] - rszloc[i][j-1] + obsloc[i][j] - rszloc[i][j] +