Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPIC: reset diffstate_buffer to nullptr after free #278

Merged
merged 1 commit into from
Jan 31, 2024

Commits on Jan 31, 2024

  1. DPIC: reset diffstate_buffer to nullptr after free

    DPI-C functions are using the diffstate_buffer to check whether
    the corresponding data structures have been initialized. However,
    we are not resetting it to nullptr after free. If the simulation
    environment is reset manually and restarted, then this pointer
    will be a dangling pointer and corrupt the next DPI-C calls.
    poemonsense committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    bbffdc0 View commit details
    Browse the repository at this point in the history