[PATCH xserver] glx: Erase glx client private before using

Adam Jackson ajax at nwnk.net
Wed Aug 2 19:59:48 UTC 2017

On Wed, 2017-08-02 at 03:39 -0700, Keith Packard wrote:
> There's no guarantee that this structure is cleared when the client is
> created, so clear it out ourselves.

I beg your pardon?

    if (!dixRegisterPrivateKey
        (&glxClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(__GLXclientState)))

Client privates aren't pre-zeroed? I was pretty sure they were.

- ajax

More information about the xorg-devel mailing list