Skip to content

Avoid double free of roi.file_path#428

Merged
Jovasa merged 1 commit intoultravideo:masterfrom
bart-kroon:fix-double-free
Mar 7, 2025
Merged

Avoid double free of roi.file_path#428
Jovasa merged 1 commit intoultravideo:masterfrom
bart-kroon:fix-double-free

Conversation

@bart-kroon
Copy link
Contributor

Changes

  • Copy the file_path string after memcpy of cfg.

Issues

Details

  • Check if the same change is needed for optional_key and fastrd_learning_outdir_fn.

@Jovasa
Copy link
Member

Jovasa commented Mar 7, 2025

Thanks Bart,

Did you also mean to commit the src/kvazaar.pc.temp file? If not could you removed it? Additionally could you please squash all of these changes into a single commit?

Quickly looking, as you suggested, the same problem seems to exist for optional_key and fastrd_learning_outdir_fn, or at least I don't see any reason why it wouldn't.

- Joose

@Jovasa Jovasa added the safe to test Run tests on CI label Mar 7, 2025
@bart-kroon
Copy link
Contributor Author

Thanks Bart,

Did you also mean to commit the src/kvazaar.pc.temp file? If not could you removed it? Additionally could you please squash all of these changes into a single commit?

Quickly looking, as you suggested, the same problem seems to exist for optional_key and fastrd_learning_outdir_fn, or at least I don't see any reason why it wouldn't.

  • Joose

Hi Joose,

This is the cleaned-up PR. I'll leave optional_key and fastrd_learning_outdir_fn to the team because I don't want to make an error with that.

Best regards,

Bart

@Jovasa
Copy link
Member

Jovasa commented Mar 7, 2025

Thanks!

@Jovasa Jovasa merged commit d1eec53 into ultravideo:master Mar 7, 2025
5 checks passed
@bart-kroon bart-kroon deleted the fix-double-free branch March 7, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Run tests on CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double free of roi_file

2 participants