Skip to content

Copybara import of the project: - #11081

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_971398177
Open

Copybara import of the project:#11081
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_971398177

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Copybara import of the project:

--
d37e157 by destro4evr-rgb destro4evr@proton.me:

litert/xnnpack: guard against zero input dimension in ResizeNearestNeighbor

input_h and input_w are read directly from the flatbuffer shape field and
used as integer divisors in the modulo and division operations at lines
1483-1489. A crafted model with a zero height or width triggers SIGFPE
(integer divide-by-zero) during XNNPACK subgraph compilation at model load
time. Add an explicit non-zero check before the first use of either value.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#11055 from destro4evr-rgb:fix/resize-nearest-neighbor-sigfpe d37e157

--
d37e157 by destro4evr-rgb <destro4evr@proton.me>:

litert/xnnpack: guard against zero input dimension in ResizeNearestNeighbor

input_h and input_w are read directly from the flatbuffer shape field and
used as integer divisors in the modulo and division operations at lines
1483-1489. A crafted model with a zero height or width triggers SIGFPE
(integer divide-by-zero) during XNNPACK subgraph compilation at model load
time. Add an explicit non-zero check before the first use of either value.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#11055 from destro4evr-rgb:fix/resize-nearest-neighbor-sigfpe d37e157
PiperOrigin-RevId: 971398177
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