Skip to content
Snippets Groups Projects
Commit cb46a269 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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
Branches
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ extern "C" {
++ii;
}
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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment