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

Check upper end of buffer in CVAfindIndex #32

Closed
wants to merge 1 commit into from

Conversation

aseyboldt
Copy link

Prevent reading out of bounds array in CVafindIndex. This should fix the segfault in #31, but possibly not the whole issue.

if ( sign*(t - dt_mem[*indx]->t) > ZERO) (*indx)++;
else break;
}

ca_mem->ca_ilast = *indx;

if ( *indx == ca_mem->ca_nsteps - 1 ) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite right yet. What exactly should happen here at the right end of the array?

@balos1 balos1 added the bug label Aug 29, 2020
@balos1 balos1 deleted the branch LLNL:master April 22, 2022 16:50
@balos1 balos1 closed this Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants