Skip to content

Harden _typeconv.select_overload sequence handling - #911

Open
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix-typeconv-select-overload-sequence-checks-clean
Open

Harden _typeconv.select_overload sequence handling#911
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix-typeconv-select-overload-sequence-checks-clean

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • Harden numba_cuda/numba/cuda/cext/_typeconv.cpp select_overload() to validate and materialize sequence arguments with PySequence_Fast() before indexed access.
  • Add error checks for invalid outer/nested sequence inputs and mismatched overload arity.
  • Add regression tests in numba_cuda/numba/cuda/tests/cudapy/test_typeconv.py covering raw C-extension invalid input paths.

@copy-pr-bot

copy-pr-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@fallintoplace
fallintoplace force-pushed the fix-typeconv-select-overload-sequence-checks-clean branch from cc0335c to 64a9f5e Compare July 3, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant