Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2019-09-24 18:54:08 +0300
committerPatrick Mours <pmours@nvidia.com>2019-09-25 15:22:21 +0300
commita1e40087c5ce327fecf469386a89daaad3880993 (patch)
tree7c762687a10060e09f0fa3b5e79462bd7754e864 /source/blender/python/intern/bpy_rna.c
parent900a9a4b06a6d8deb2465c2b4b9f3fb9e7fc1bdd (diff)
Cycles: Fix undefined behavior which can causes crashes with a misaligned address error
Cycles casts a pointer from ShaderDataTinyStorage to ShaderData, these structs by default had different alignments however (the former was 1-byte aligned, the latter 16-byte). This caused undefined behavior on at least the CUDA platform. Forcing both structs to use the same alignment fixes this. CUDA toolkits newer than 10.1 run into this because of a compiler optimization. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5883
Diffstat (limited to 'source/blender/python/intern/bpy_rna.c')
0 files changed, 0 insertions, 0 deletions