Skip to content

Commit

Permalink
Explore fix for heap buffer overflow in CInterface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueh committed Apr 3, 2024
1 parent 41256dc commit c97610b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SU2_CFD/src/interfaces/CInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void CInterface::PreprocessAverage(CGeometry *donor_geometry, CGeometry *target_
for(iSpan = 1; iSpan <nSpanTarget-1; iSpan++){
dist = 10E+06;
dist2 = 10E+06;
for(jSpan = 0; jSpan < nSpanDonor;jSpan++){
for(jSpan = 1; jSpan < nSpanDonor - 1;jSpan++){
test = abs(SpanValuesTarget[iSpan] - SpanValuesDonor[jSpan]);
test2 = abs(SpanValuesTarget[iSpan] - SpanValuesDonor[jSpan]);
if(test < dist && SpanValuesTarget[iSpan] > SpanValuesDonor[jSpan]){
Expand Down

0 comments on commit c97610b

Please sign in to comment.