Repository navigation
libobs: clear encoder_group on obs_encoder_set_group(enc, NULL) - #688
Merged
Merged
Conversation
Local-Gate: v1 tree=a5d462a22152e13481fa439e6fc3280b2c31ee65 secs=354 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791959598,"gate":"rust/all/fmt","host":"linux-x86_64","key":"11e6efb0eb3422baba17407e6b45ab4914ecea800b4c54bc1f889fc54c3bb474","lane":"lint","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":23,"stamp":"71b016aab64fede302e4ded8626cbcf2","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959598,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"11e6efb0eb3422baba17407e6b45ab4914ecea800b4c54bc1f889fc54c3bb474","lane":"lint","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":23,"stamp":"6ab56f51935dac67b2c8e4e1f8c369fa","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"974b4660ab9257a9eff35944e99534537ed29dba8fc2193a8ee26086e6905c92","lane":"rust-test","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":101,"stamp":"4d532bf65c42f13057dcffe09265e271","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"017b8184b97822682705de53c67e6215f986d043dd31957be3ed16ae5feb92db","lane":"cross","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":79,"stamp":"5cec04569a3b5b4102f337d59c917a11","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"017b8184b97822682705de53c67e6215f986d043dd31957be3ed16ae5feb92db","lane":"cross","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":79,"stamp":"5bf996bfedfe358ec1bc6da6fc0f38e8","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"017b8184b97822682705de53c67e6215f986d043dd31957be3ed16ae5feb92db","lane":"cross","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":79,"stamp":"dffea013cd93c77320e6dfc3e262088f","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"017b8184b97822682705de53c67e6215f986d043dd31957be3ed16ae5feb92db","lane":"cross","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":79,"stamp":"47ffb886c2077dfbc616225a1fd4e38b","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"017b8184b97822682705de53c67e6215f986d043dd31957be3ed16ae5feb92db","lane":"cross","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":79,"stamp":"e218db34edddd62ef0ac4d3f5448e42f","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"017b8184b97822682705de53c67e6215f986d043dd31957be3ed16ae5feb92db","lane":"cross","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":79,"stamp":"58e19a93153106e489665677aeeca931","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
Ci-Attestation: {"at":1791959599,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"10150c265b42e2fd1b6e5edf48edc663754ef14ebdca3613336f03f6ad87586c","lane":"tier2-linux","parents":["d8e5833cd841ca4fa66297c93bcc932507ef718c"],"secs":150,"stamp":"f964b97b5ff833e7f07a3a8af3e9623f","tree":"a5d462a22152e13481fa439e6fc3280b2c31ee65","v":1,"via":"run"}
10 tasks done
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.
Fixes #483
obs_encoder_set_group(enc, NULL)released the group's reference but leftencoder->encoder_grouppointing at the old group; a later set to another group released a reference the encoder no longer held (use-after-free). Fix: clear the pointer after erasing the encoder from the old group. Encoder-group code is C-only (no Rust port), so OFF and ON behave the same.Commits: RED
d8e5833cd(newtest_encoder_group_null, runs under xvfb-run when available), GREEN8f7d5b9da(one line in libobs/obs-encoder.c).RED (
rust/tools/linux-validate/run.sh, OFF build; the script stops at the first failing build):GREEN:
./lintok; local-gate run passed (lint, rust-test, cross, tier2-linux), commit stamped.