Skip to content

Fix MSAN use-of-uninitialized-value in av2_rd_pick_inter_mode_sb().#5083

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
urvangjoshi:msan_fix_inter
Jul 7, 2026
Merged

Fix MSAN use-of-uninitialized-value in av2_rd_pick_inter_mode_sb().#5083
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
urvangjoshi:msan_fix_inter

Conversation

@urvangjoshi

Copy link
Copy Markdown
Contributor

Initialize ref_costs_single for INTRA and TIP frame indices to INT_MAX when they are not allowed.

Previously, these elements were left uninitialized in estimate_ref_frame_costs if the respective modes were not allowed, but they were still being read and passed to other functions in av2_rd_pick_inter_mode_sb, triggering MSAN warnings.

Fixes #5081

Initialize `ref_costs_single` for INTRA and TIP frame indices to
`INT_MAX` when they are not allowed.

Previously, these elements were left uninitialized in
`estimate_ref_frame_costs` if the respective modes were not allowed,
but they were still being read and passed to other functions in
`av2_rd_pick_inter_mode_sb`, triggering MSAN warnings.
@urvangjoshi urvangjoshi merged commit 24648fa into AOMediaCodec:main Jul 7, 2026
109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nightly CI Failures related to av2_rd_pick_inter_mode_sb()

4 participants