[Wayland-bugs] [Bug 103757] eglGetDisplay() is broken for Wayland

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 15 16:37:40 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103757

--- Comment #7 from Daniel Stone <daniel at fooishbar.org> ---
(In reply to Michael Olbrich from comment #6)
> (In reply to Daniel Stone from comment #2)
> 
> > Michael, I'll attach a compiled but untested patch; can you please let me
> > know if it helps?
> 
> Looks good. It does the right thing for wayland and drm at least.
> is _eglPointerIsDereferencable() sufficient to ensure that the whole string
> is accessible?

Good point - I guess it'd have to be if
(_eglPointerIsDereferencable(child_pointer) &&
_eglPointerIsDereferencable(((char *) child_pointer) + strlen("wl_display") +
1) && strcmp(interface->name, "wl_display") == 0) ... ugh. Does that work for
you?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171115/b1dd2785/attachment.html>


More information about the wayland-bugs mailing list