-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a segfault form libpci #21
Comments
Nice catch, thanks! |
No problem. Thanks for the excellent plugin. Thanks for integrating the fix so quickly. I was actually planning on sending a pull request later.
Just one correct the function populate_devices() also needs this same fix.
Thanks,
Jon
…________________________________
From: Florian Zwoch ***@***.***>
Sent: Monday, November 13, 2023 3:25 PM
To: fzwoch/obs-vaapi ***@***.***>
Cc: Jon Nettleton ***@***.***>; Author ***@***.***>
Subject: Re: [fzwoch/obs-vaapi] Getting a segfault form libpci (Issue #21)
Nice catch, thanks!
—
Reply to this email directly, view it on GitHub<#21 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AINUS3EHKE6PE7X4WBFXOBTYEIUWLAVCNFSM6AAAAAA7IRSMC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBYGI3DGNJYGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Ugh, didn't realize I had it twice because of the legacy encoders. Fixed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe you sscanf matching implementation in get_device_name and populate_devices is slightly incorrect. Your format specifier matches everything up to the - character which leaves the separator as part of the domain integer. If the domain is zero this is most likely irrelevant since -0 should be overlooked. However for my configuration this was making the domain -4 which is obviously invalid. Instead I have changed the code as following to get things up and working.
The text was updated successfully, but these errors were encountered: