Skip to content

Commit

Permalink
WFC3 CTE - fix out of bounds memory access
Browse files Browse the repository at this point in the history
fixes #61

Signed-off-by: James Noss <[email protected]>
  • Loading branch information
jamienoss committed Oct 9, 2018
1 parent 670d8b5 commit 3c0655c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wfc3/calwf3/wf3cte/wf3cte.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] +
Expand Down

0 comments on commit 3c0655c

Please sign in to comment.