[Git][wine/vkd3d][master] 4 commits: vkd3d-shader: Avoid passing NULL to memcpy(). (ubsan)
Henri Verbeet pushed to branch master at wine / vkd3d Commits: eaf4d0bf by Francisco Casas at 2025-01-10T19:51:43+01:00 vkd3d-shader: Avoid passing NULL to memcpy(). (ubsan) Otherwise when passing "-fsanitize=undefined" to the compiler, ubsan reports such as: libs/vkd3d-shader/ir.c:3794:5: runtime error: null pointer passed as argument 1, which is declared to never be null - - - - - 7b23cd4d by Francisco Casas at 2025-01-10T19:51:55+01:00 vkd3d-shader: Avoid passing NULL to qsort(). (ubsan) Otherwise ubsan reports runtime errors such as: libs/vkd3d-shader/ir.c:4731:5: runtime error: null pointer passed as argument 1, which is declared to never be null - - - - - 8056058a by Francisco Casas at 2025-01-10T19:51:55+01:00 vkd3d-shader: Avoid passing NULL to memset(). (ubsan) Otherwise ubsan reports errors such as: libs/vkd3d-shader/spirv.c:7266:5: runtime error: null pointer passed as argument 1, which is declared to never be null - - - - - 9b3b47b1 by Francisco Casas at 2025-01-10T19:51:55+01:00 vkd3d-shader: Avoid left shifting signed integers. (ubsan) Otherwise ubsan reports these errors on the bitwise.shader_test: libs/vkd3d-shader/hlsl_constant_ops.c:970:50: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' libs/vkd3d-shader/hlsl_constant_ops.c:970:50: runtime error: left shift of negative value -12 - - - - - 7 changed files: - libs/vkd3d-shader/hlsl_codegen.c - libs/vkd3d-shader/hlsl_constant_ops.c - libs/vkd3d-shader/ir.c - libs/vkd3d-shader/spirv.c - libs/vkd3d-shader/vkd3d_shader_main.c - libs/vkd3d/state.c - tests/hlsl/bitwise.shader_test View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/29bac62ba22705bb7521aed72deb8... -- View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/29bac62ba22705bb7521aed72deb8... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Henri Verbeet (@hverbeet)