You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 667b150
Browse filesBrowse the repository at this point in the historyBrowse files
Fix heap-buffer-overflow in constant_pad_nd with overflow-safe bounds checking (pytorch#16468)
Summary: Fix fuzzer-discovered heap-buffer-overflow (T250636018) in the
constant_pad_nd kernel. The bounds checking was missing the actual
output buffer end pointer and used arithmetic that could overflow with
crafted inputs. This adds proper out_data_end tracking and rewrites the
bounds checks to use overflow-safe division instead of
potentially-overflowing multiplication.
Differential Revision: D90188241
0 commit comments