-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Segfaults on TV input #4096
Comments
The TV code is unmaintained. I don't see anything wrong with the commit that's supposed to cause it, and the backtrace doesn't tell me anything either. A backtrace on a binary compiled without optimization might be slightly more helpful. I can't even test this code, because I have no tuner. On the other hand, the non-v4l dummy backend works fine.
A patch to fix it would be best. |
Found it: `tv_new_handle()` does not initialize the `tv_channel_list`
field (among others), potentially causing problems when `open_tv()`
tries to dereference it.
(9f0e7bb was obviously a red herring, merely affecting what remained in
the previously allocated memory chunk.)
A patch to fix it would be best.
Gladly. Should I individually add the missing fields to the list, or
would a `memset` on the whole struct be more appropriate?
|
I think switching to calloc would be preferred. |
mpv version and platform
mpv 0.23.0, on Debian sid/amd64 (with a Hauppauge BT878 card)
Reproduction steps
mpv tv://
Expected behavior
Doesn't crash. 😄
Actual behavior
Segfaults.
Log file
Bisecting identified 9f0e7bb as the guilty commit.
Let me know if there's anything I can do to help. Thanks!
The text was updated successfully, but these errors were encountered: