Commit cb46a269 authored by Sébastien Villemot's avatar Sébastien Villemot

Fix invalid memory write in k-order DLL

The bug would show at order 3 when the last output argument (derivs) is not
requested (in practice every 3rd order solution without pruning). The DLL would
still attempt to write into it, causing an invalid memory access.
parent 13ce9186
......@@ -293,7 +293,7 @@ extern "C" {
if (kOrder == 3 && nlhs > 4)
if (kOrder == 3 && nlhs > 5)
const FGSContainer *derivs = app.get_rule_ders();
const std::string fieldnames[] = {"gy", "gu", "gyy", "gyu", "guu", "gss",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment