[Mesa-dev] Avoid segfault in omx deconstructor

StDenis, Tom Tom.StDenis at amd.com
Tue Nov 3 10:06:37 PST 2015


Now with the correct email address ...


Cheers,

Tom


________________________________
From: StDenis, Tom
Sent: Tuesday, November 3, 2015 13:03
To: mesa-dev at lists.freedesktop.org
Cc: gpudriverdevsupport
Subject: Avoid segfault in omx deconstructor


If the constructor fails before the lists are initialized the deconstructor will fail.


This patch is a bit of a kludge fix to just avoid the undefined behaviour.  The real fix down the road would be to avoid calling the deconstructor if the constructor failed at all.


Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151103/60eab780/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-segfault-in-deconstructor-if-constructor-fails.patch
Type: text/x-patch
Size: 1034 bytes
Desc: 0001-Avoid-segfault-in-deconstructor-if-constructor-fails.patch
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151103/60eab780/attachment.bin>


More information about the mesa-dev mailing list