---
id: pr-flashinfer-1290
repo: flashinfer-ai/flashinfer
pr: 1290
title: '[fix] fix integer overflow in FA2 customized_mask & add buffer overflow warning.'
author: happierpig
date: '2025-07-24'
url: https://github.com/flashinfer-ai/flashinfer/pull/1290
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- quantization
techniques: []
hardware_features: []
kernel_types:
- attention
- quantization
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: ba3f3248518ed23584fad36ea56ef16d53ad3531
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/__init__.py
- flashinfer/sparse.py
- include/flashinfer/attention/variants.cuh
- include/flashinfer/quantization.cuh
- tests/test_block_sparse.py
head_ref_oid: 0e419e640a50087ab333d3d740d7f79e09f2f0fc
artifact_dir: evidence/pull-bundles/flashinfer/gh-1290
---
# [fix] fix integer overflow in FA2 customized_mask & add buffer overflow warning.

- Repository: `flashinfer-ai/flashinfer`
- PR: [1290](https://github.com/flashinfer-ai/flashinfer/pull/1290)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `flashinfer/__init__.py`
- `flashinfer/sparse.py`
- `include/flashinfer/attention/variants.cuh`
- `include/flashinfer/quantization.cuh`
- `tests/test_block_sparse.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-1290`
