[Mesa-dev] [PATCH shader-db] run: don't use alloca to avoid random crashes in the GLSL compiler

Jan Vesely jan.vesely at rutgers.edu
Wed Dec 7 18:04:11 UTC 2016


On Wed, 2016-12-07 at 18:44 +0100, Marek Olšák wrote:
> On Wed, Dec 7, 2016 at 6:42 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> > What's wrong with feeding it stack memory?
> 
> I don't really have an answer to that.

what happens when you malloc shader[i].length + 1 instead of +1000?
looks like you're just hiding overflow error.

Jan

> 
> Marek
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161207/1a198ea0/attachment.sig>


More information about the mesa-dev mailing list