Skip to content

Fix integer overflow in deconvolution kernel-size computation - #10834

Merged
copybara-service[bot] merged 1 commit into
google:masterfrom
prasanna8585:fix-deconvolution-kernel-size-overflow
Jul 24, 2026
Merged

copybara-service[bot] merged 1 commit into
google:masterfrom
prasanna8585:fix-deconvolution-kernel-size-overflow

Conversation

@prasanna8585

Copy link
Copy Markdown
Contributor

Extends the overflow-safe xnn_safe_mul pattern from commit 3353194 (convolution-nhwc.c) to deconvolution-nhwc.c, which had the same unguarded kernel_height * kernel_width (and related chained multiplication) computations.

Most notably, the weight-packing size computation in generate_fingerprint_parameters chained five caller-controlled factors (groups, group_output_channels, kernel_height, kernel_width, group_input_channels) with no overflow protection at any step.

Extends the overflow-safe xnn_safe_mul pattern from commit 3353194
(convolution-nhwc.c) to deconvolution-nhwc.c, which had the same
unguarded kernel_height * kernel_width (and related chained
multiplication) computations.

Most notably, the weight-packing size computation in
generate_fingerprint_parameters chained five caller-controlled factors
(groups, group_output_channels, kernel_height, kernel_width,
group_input_channels) with no overflow protection at any step.
@copybara-service
copybara-service Bot merged commit 9142e94 into google:master Jul 24, 2026
8 checks passed
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.

2 participants