From e28f3916dd9b486f7d105430780d94861fe88460 Mon Sep 17 00:00:00 2001 From: Ardavan Oskooi Date: Tue, 28 Dec 2021 15:16:23 -0800 Subject: [PATCH] fix heap buffer overflow error for update E from D in cylindrical coordinates (#1871) --- src/update_eh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update_eh.cpp b/src/update_eh.cpp index e59a25beb..efd7d3ffe 100644 --- a/src/update_eh.cpp +++ b/src/update_eh.cpp @@ -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],