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
bug: libobs: an out-of-range transition scale type gives an uninitialized scale #2064
recalculate_transition_matrix() (libobs/obs-source-transition.c.h) reads an uninitialized scale when transition_scale_type is outside the obs_transition_scale_type enum. obs_transition_load() takes that value from a scene collection without checking it, so a scene collection with a bad scale type puts a garbage float into the transition's render matrix. GCC also warns about it (-Wmaybe-uninitialized).
There's no memory-safety impact: it's a wrong scale, with no pointer or index involved. Found while porting the transition clock and fit (#2040/#2055). Upstream has the same code.
Plan
RED: a test that loads a transition with an out-of-range scale type from obs_data, and one that sets it through obs_transition_set_scale_type(). Both must give a defined matrix.
Activity
rdoupe commentedon Oct 24, 2026
Claiming: #2064.
libobs: Treat an out-of-range transition scale type as Max Only
test: Expect an out-of-range transition scale type to act as Max Only
libobs: Treat an out-of-range transition scale type as Max Only
libobs: Treat an out-of-range transition scale type as Max Only (obs-…