blender/intern/cycles/kernel/closure
Sergey Sharybin 241c81ed5f Fix: Uninitialized variable access in Cycles
Shadow terminator tricks might access uninitialized value of `wo`,
which happens in cases BSDF evaluation returns LABEL_NONE (i.e. when
the incident ray is in the lower hemisphere).

It is likely harmless from the render result perspective, as the `eval`
does not seem to be used. Also, since the `eval` is initialized to 0
it would need to be aa case when undefined `wo` leads to NAN or INF
returned by the shadow terminator offsets. Still good to solve this issue
to allow use of debugging tools like Valgrind.

Pull Request: https://projects.blender.org/blender/blender/pulls/149932
2025-11-14 18:30:32 +01:00
..
alloc.h Cleanup: Unused parameter warning 2025-06-02 13:59:14 +02:00
bsdf.h Fix: Uninitialized variable access in Cycles 2025-11-14 18:30:32 +01:00
bsdf_ashikhmin_shirley.h Cycles: Fix inconsistency in Ng handling between Microfacets and other closures 2025-05-18 17:20:32 +02:00
bsdf_ashikhmin_velvet.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
bsdf_burley.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_diffuse.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_diffuse_ramp.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_hair.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_microfacet.h Cycles: Thin film iridescence for metals 2025-09-29 02:58:20 +02:00
bsdf_oren_nayar.h Cycles: OSL oren_nayar_diffuse_bsdf compatibility for MaterialX 2025-01-27 17:58:20 +01:00
bsdf_phong_ramp.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
bsdf_principled_hair_chiang.h Cycles: Add linear curve shape 2025-07-29 17:05:01 +02:00
bsdf_principled_hair_huang.h Cycles: Add linear curve shape 2025-07-29 17:05:01 +02:00
bsdf_ray_portal.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_sheen.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_toon.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_transparent.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
bsdf_util.h Cycles: Thin film iridescence for metals 2025-09-29 02:58:20 +02:00
bssrdf.h Cycles: Enable multi-bounce random walk subsurface scattering 2025-06-19 20:04:49 +02:00
emissive.h Cleanup: Unused arguments in Cycles kernel 2025-05-27 21:30:45 +02:00
volume.h Cycles: Shade volume with null scattering 2025-08-13 10:28:50 +02:00
volume_draine.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
volume_fournier_forand.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
volume_henyey_greenstein.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
volume_rayleigh.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
volume_util.h Cleanup: consistent for C-style comment blocks 2025-08-08 07:37:33 +10:00