Skip to content

stream/dvdnav: fix NULL deref and wrong buffer in navigation event handling#18140

Open
hyder365 wants to merge 1 commit into
mpv-player:masterfrom
hyder365:fix/dvdnav-null-deref
Open

stream/dvdnav: fix NULL deref and wrong buffer in navigation event handling#18140
hyder365 wants to merge 1 commit into
mpv-player:masterfrom
hyder365:fix/dvdnav-null-deref

Conversation

@hyder365

Copy link
Copy Markdown

dvdnav_get_current_nav_pci can return NULL on a malformed DVD; the return value was dereferenced without a check. Also, the DVDNAV_VTS_CHANGE handler read event data from s->buffer (stale stream buffer) instead of the fresh event buffer buf, unlike the correct DVDNAV_CELL_CHANGE handler.

@kasper93

Copy link
Copy Markdown
Member

This is already fixed in my WIP branch with DVD menu support, which I expect to finalize soon. There is no need to rush those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants