Skip to content

[Converter:Bugfix] Fail fast on out-of-range TFLite tensor/buffer indices - #4834

Merged
wangzhaode merged 1 commit into
alibaba:masterfrom
kabishou11:cursor/fix-tflite-index-bounds-880d
Sep 11, 2026
Merged

wangzhaode merged 1 commit into
alibaba:masterfrom
kabishou11:cursor/fix-tflite-index-bounds-880d

Conversation

@kabishou11

Copy link
Copy Markdown
Contributor

Fail fast with a clear error when TFLite tensor/buffer/input/output indices are out of range, instead of crashing MNNConvert. Fixes #4795

…ices

Add bounds checks in tflite2MNNNet and per-op converters so malformed
TFLite models return a clear error instead of crashing MNNConvert.

Fixes alibaba#4795
@wangzhaode wangzhaode self-assigned this Sep 11, 2026
@wangzhaode
wangzhaode merged commit 835e923 into alibaba:master Sep 11, 2026
1 check passed
ZedingZhang pushed a commit to ZedingZhang/MNN that referenced this pull request Sep 29, 2026
…ices (alibaba#4834)

Add bounds checks in tflite2MNNNet and per-op converters so malformed
TFLite models return a clear error instead of crashing MNNConvert.

Fixes alibaba#4795
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.

[bug] tflite2MNNNet crashes on TFLite models whose tensor, buffer and input indices are out of range

2 participants