Skip to content
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

[minui] Fix false positive gr_init() return value. JB#59813 #7

Merged
merged 1 commit into from Jan 28, 2023

Conversation

spiiroin
Copy link
Contributor

At least drm backend can have situation where gr_init() gets non-null gr_draw buffer from backend init - which then turns to null due to failure within gr_flip(). As the latter is not checked, gr_init() can return success and application then crashes later on when null gr_draw gets dereferenced.

Check that gr_draw remains non-null after initial gr_flip() calls.

Signed-off-by: Simo Piiroinen simo.piiroinen@jolla.com

At least drm backend can have situation where gr_init() gets non-null
gr_draw buffer from backend init - which then turns to null due to
failure within gr_flip(). As the latter is not checked, gr_init() can
return success and application then crashes later on when null gr_draw
gets dereferenced.

Check that gr_draw remains non-null after initial gr_flip() calls.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin spiiroin merged commit b76f7f4 into sailfishos:master Jan 28, 2023
@spiiroin spiiroin deleted the jb59813_compositor_extension branch January 28, 2023 14:35
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.

None yet

2 participants