[PATCH] Don't crash on xf86DuplicateMode(NULL)
Nicolas Trangez
eikke at eikke.com
Wed Jul 18 08:07:02 PDT 2007
Hija,
I do not know the policy of handling (invalid) NULL function arguments
in the Xserver. The utility function xf86DuplicateMode crashes the
server when calling with a NULL argument (*pNew = *pMode, where pMode =
0x0) when trying the avivo driver, both on my system, and on someone
else's as just reported on irc (bugzilla #11651).
This small patch handles this case in the utility function and lets it
up to the driver to handle the invalid mode problem.
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-crash-on-xf86DuplicateMode-NULL.patch
Type: application/mbox
Size: 877 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070718/8849bac3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20070718/8849bac3/attachment.pgp>
More information about the xorg
mailing list