Skip to content

Commit

Permalink
fix long standing out-of-bound memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvano Galliani committed Jul 9, 2016
1 parent 78b6fb3 commit e2b1616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ static int runGipuma ( InputFiles &inputFiles,
float xy = pow(x,2)+pow(y,2);
if(xy <= 1.0f){
float z = sqrt(1.0f-xy);
normalTestImg(sizeN-i,sizeN-j) = Vec3f(-x,-y,-z);
normalTestImg(sizeN-1-i,sizeN-1-j) = Vec3f(-x,-y,-z);
}
}
}
Expand Down

0 comments on commit e2b1616

Please sign in to comment.