dawn-cmake/generator/templates
Corentin Wallez c7d78088cd Make codegen not cast between fnptrs.
When generating the proc tables for dawn_native and dawn_wire (for the
client), we were casting between function pointers with the C types and
function pointers with the internal types. This is UB and was caught by
UBSan.

Replace casts between function pointers by casts between types inside
the functions themselves.

BUG=chromium:906349

Change-Id: Icd8f6eedfa729e767ae3bacb2d6951f5ad5c4c82
Reviewed-on: https://dawn-review.googlesource.com/c/2400
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
2018-11-20 09:33:35 +00:00
..
dawn_native Make codegen not cast between fnptrs. 2018-11-20 09:33:35 +00:00
dawn_wire Make codegen not cast between fnptrs. 2018-11-20 09:33:35 +00:00
api.c Rename nxtProcTable and nxtSetProcs to dawn 2018-07-18 22:54:06 +02:00
api.h dawn.h: Don't use anonymous structures 2018-09-18 12:09:55 +00:00
apicpp.cpp dawncpp.h: Don't expose the fluent syntax for non-builders 2018-09-20 20:05:21 +00:00
apicpp.h Add copy constructors to the C++ Dawn interface 2018-10-25 10:42:49 +00:00
apicpp_traits.h Standardize header guards for libdawn headers 2018-07-25 21:03:49 +02:00
mock_api.cpp Descriptorize Buffer 2018-08-23 08:23:06 -04:00
mock_api.h Descriptorize Buffer 2018-08-23 08:23:06 -04:00