---
id: pr-flashinfer-2802
repo: flashinfer-ai/flashinfer
pr: 2802
title: '[fix] Bugfix 1367: fix VariableBlockSparseAttention buffer overflow by dynamically resizing kv_lens_buffer'
author: qsang-nv
date: '2026-03-19'
url: https://github.com/flashinfer-ai/flashinfer/pull/2802
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- prefill
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- prefill
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: c4a159a8d3fa286b3b0076d2ee224ac96a136c11
inclusion_reason: semantic match with file changes
changed_paths:
- flashinfer/decode.py
- flashinfer/prefill.py
- flashinfer/sparse.py
head_ref_oid: 31816f83ee730f694f5c82ec5cb470018e7f3a41
artifact_dir: evidence/pull-bundles/flashinfer/gh-2802
---
# [fix] Bugfix 1367: fix VariableBlockSparseAttention buffer overflow by dynamically resizing kv_lens_buffer

- Repository: `flashinfer-ai/flashinfer`
- PR: [2802](https://github.com/flashinfer-ai/flashinfer/pull/2802)
- Decision: `semantic match with file changes`
- Reason: semantic match with file changes

## Changed Paths

- `flashinfer/decode.py`
- `flashinfer/prefill.py`
- `flashinfer/sparse.py`

## Evidence Bundle

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