Repository navigation
fix(frontend): state the audio mixer bit masks the asan lane's sign-conversion check reports (#2938) - #2952
Merged
Conversation
…onversion check reports (#2938) The Sanitizers lane compiles the app target with -Wconversion -Wsign-conversion -Werror. setMixer() mixed an int shift into a uint32_t, which the lane reports as: frontend/components/OBSAdvAudioCtrl.cpp.hpp:533:45: error: conversion to 'uint32_t' from 'int' may change the sign of the result [-Werror=sign-conversion] The same shape appears in the twelve 'mixers & (1 << n)' reads that feed setChecked()/setCheckboxState(). The masks are unsigned now (1u), so the expressions stay wholly unsigned; no value changes.
This was referenced Oct 29, 2026
zackees
marked this pull request as ready for review
October 29, 2026 18:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2938 (one file of the frontend tail; the issue stays open until the whole group compiles).
RED (how it fails)
Sanitizerson master,asan 🧪, run 40919949570 (job 123611184270, headc2df54a7f):That run is the first asan build on master to get past
plugins/obs-outputs/mp4-mux.c.h, so this is the next site the lane reaches, not a new regression. The lane compiles the app target with-Wconversion -Wsign-conversion -Werror.GREEN (what this changes)
frontend/components/OBSAdvAudioCtrl.cpp.hpp:setMixer():new_mixers |= (1 << mixerIdx)->1u << mixerIdx, so the shifted value and theuint32_taccumulator stay unsigned. The~(...)arm already used1u.mixers & (1 << n)reads that feedsetChecked()/setCheckboxState()get the same1uliteral;mixersisuint32_tthere and the int literal made the&mixed-sign.No value changes: every shift count is a constant 0-5 or
mixerIdx(0-5), well inside the 32-bit mask.Evidence
./lintclean on this commit (lane lint ok, 42.7s).CI Gate ✅plus the nextSanitizersdispatch.