Skip to content

BUG: Fix integer overflow in in1d for mixed integer dtypes #22877#22884

Merged
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-22878
Dec 25, 2022
Merged

BUG: Fix integer overflow in in1d for mixed integer dtypes #22877#22884
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-22878

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Dec 25, 2022

Backport of #22878.

  • TST: Mixed integer types for in1d

  • BUG: Fix mixed dtype overflows for in1d (BUG: numpy.isin does not function correctly with two arrays with different integer type #22877)

  • BUG: Type conversion for integer overflow check

  • MAINT: Fix linting issues in in1d

  • MAINT: ar1 overflow check only for non-empty array

  • MAINT: Expand bounds of overflow check

  • TST: Fix integer overflow in mixed boolean test

  • TST: Include test for overflow on mixed dtypes

  • MAINT: Less conservative overflow checks

numpy#22878)

* TST: Mixed integer types for in1d

* BUG: Fix mixed dtype overflows for in1d (numpy#22877)

* BUG: Type conversion for integer overflow check

* MAINT: Fix linting issues in in1d

* MAINT: ar1 overflow check only for non-empty array

* MAINT: Expand bounds of overflow check

* TST: Fix integer overflow in mixed boolean test

* TST: Include test for overflow on mixed dtypes

* MAINT: Less conservative overflow checks
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Dec 25, 2022
@charris charris added this to the 1.24.1 release milestone Dec 25, 2022
@charris charris merged commit 002c60d into numpy:maintenance/1.24.x Dec 25, 2022
@charris charris deleted the backport-22878 branch December 25, 2022 21:14
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