dawn-cmake/generator/templates/dawn_wire
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
..
WireClient.cpp Make codegen not cast between fnptrs. 2018-11-20 09:33:35 +00:00
WireCmd.cpp WireCmd: error out if "self" is null. 2018-11-12 09:01:36 +00:00
WireCmd.h Make dawn_wire a shared library 2018-07-30 17:22:45 +02:00
WireServer.cpp WireServer: Check for ID 0 in hand-written handlers. 2018-11-20 09:31:45 +00:00