Skip to content

Commit

Permalink
fix heap buffer overflow error for update E from D in cylindrical coo…
Browse files Browse the repository at this point in the history
…rdinates (#1871)
  • Loading branch information
oskooi authored Dec 28, 2021
1 parent aaae0ac commit e28f391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update_eh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ bool fields_chunk::update_eh(field_type ft, bool skip_w_components) {
}

if (f[ec][cmp] != f[dc][cmp])
STEP_UPDATE_EDHB(f[ec][cmp], ec, gv, gvs_eh[ft][i].little_owned_corner(ec), gvs_eh[ft][i].big_corner(),
STEP_UPDATE_EDHB(f[ec][cmp], ec, gv, gvs_eh[ft][i].little_owned_corner0(ec), gvs_eh[ft][i].big_corner(),
dmp[dc][cmp], dmp[dc_1][cmp], dmp[dc_2][cmp],
s->chi1inv[ec][d_ec], dmp[dc_1][cmp] ? s->chi1inv[ec][d_1] : NULL,
dmp[dc_2][cmp] ? s->chi1inv[ec][d_2] : NULL, s_ec, s_1, s_2, s->chi2[ec],
Expand Down

0 comments on commit e28f391

Please sign in to comment.