Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
..
2017-08-20 22:07:43 +02:00
2017-05-20 17:05:38 -03:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-08-20 22:07:43 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-08-16 17:22:23 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-08-15 19:49:28 -03:00
2017-08-24 23:08:24 +02:00
2017-05-20 17:05:38 -03:00
2017-08-20 22:07:43 +02:00
2017-05-20 17:05:38 -03:00
2017-07-18 09:43:16 +07:00
2017-06-14 01:24:04 +02:00
2017-08-24 23:08:24 +02:00
2017-06-30 21:35:05 -03:00
2017-08-24 23:08:24 +02:00
2017-08-08 10:59:45 -03:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-08-10 07:17:50 +02:00
2017-08-16 17:22:23 +02:00
2017-08-20 22:07:43 +02:00
2017-08-16 18:16:47 +02:00
2017-08-20 22:07:43 +02:00
2017-04-08 00:11:42 +02:00
2017-08-21 19:56:08 -03:00
2017-08-20 22:07:43 +02:00
2017-08-20 22:07:43 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-05-20 17:05:38 -03:00
2017-08-16 17:22:23 +02:00
2017-08-07 18:24:35 +07:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-08-20 22:07:43 +02:00
2017-08-16 17:22:23 +02:00
2017-08-24 23:08:24 +02:00
2017-08-16 17:22:23 +02:00
2017-08-24 23:08:24 +02:00
2017-05-20 17:05:38 -03:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00
2017-08-19 01:29:45 +02:00
2017-04-08 00:11:42 +02:00
2017-08-20 22:07:43 +02:00
2017-08-16 17:22:23 +02:00
2017-08-24 23:08:24 +02:00
2017-08-19 15:23:45 +01:00
2017-08-24 23:08:24 +02:00
2017-05-20 17:05:38 -03:00
2016-11-01 00:35:16 +01:00
2017-04-08 00:11:42 +02:00
2017-04-08 00:11:42 +02:00
2017-07-18 01:50:01 -05:00
2017-07-11 02:48:55 +07:00
2017-08-21 21:48:05 +02:00
2017-05-20 17:05:38 -03:00
2017-08-24 23:08:24 +02:00
2017-06-10 10:15:33 -03:00
2017-08-24 23:08:24 +02:00
2017-08-16 17:22:23 +02:00
2017-08-20 22:07:43 +02:00
2017-07-23 16:12:19 +07:00
2017-08-24 00:06:56 -03:00
2017-08-24 00:06:56 -03:00
2017-08-20 22:07:43 +02:00
2017-08-16 17:22:23 +02:00
2017-08-22 13:46:59 +07:00
2017-08-22 13:46:59 +07:00
2017-08-20 22:07:43 +02:00
2017-04-08 00:11:42 +02:00
2017-05-03 06:19:15 +09:00
2017-05-03 06:19:15 +09:00
2017-08-22 00:58:12 +02:00
2017-08-24 23:08:24 +02:00
2017-08-21 15:15:55 -04:00
2017-08-16 17:22:23 +02:00
2017-08-24 23:08:24 +02:00
2017-04-08 00:11:42 +02:00