8000 BUG: Fix out-of-bounds access in convert_datetime_divisor_to_multiple by charris · Pull Request #19239 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix out-of-bounds access in convert_datetime_divisor_to_multiple #19239

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

Merged
merged 1 commit into from
Jun 13, 2021

Conversation

charris
Copy link
Member
@charris charris commented Jun 13, 2021

Backport of #19402.

If the NPY_DATETIMEUNIT is >= NPY_FR_s, the _multiples_table lookup will be out of bounds. It appears the correct logic appears a few lines down and should be used instead in this case.

Caught by running the existing datetime test in NumPy 1.19 under address sanitizer.

…e().

If the NPY_DATETIMEUNIT is >= NPY_FR_s, the _multiples_table lookup will be out of bounds. It appears the correct logic appears a few lines down and should be used instead in this case.
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jun 13, 2021
@charris charris added this to the 1.21.0 release milestone Jun 13, 2021
@charris charris merged commit a070e5d into numpy:maintenance/1.21.x Jun 13, 2021
@charris charris deleted the backport-19402 branch June 13, 2021 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0