Philip Withnall
c879f50f8a
docs: Update the documentation for G_GNUC_MALLOC to reflect recent GCC
...
Thanks to some great investigation by Benjamin Moody, it’s clear that
our documentation and usage of G_GNUC_MALLOC has fallen behind GCC’s
interpretation of the malloc attribute, meaning that recent versions of
GCC could miscompile code which uses G_GNUC_MALLOC incorrectly.
Update the documentation of G_GNUC_MALLOC to match the current GCC
documentation (for GCC 8.2). Following commits will drop our use of
G_GNUC_MALLOC from inappropriate functions.
Specifically, the change in GCC’s interpretation of the malloc attribute
which could cause miscompilation is that returned storage areas are now
assumed to not contain valid pointers — so realloc() cannot have the
malloc attribute, and neither can a function which returns a newly
allocated structure with fields initialised to other pointers.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/1465
2018-08-22 11:18:02 +01:00
..
2018-04-27 16:46:19 +01:00
2017-01-04 19:12:57 +01:00
2018-04-25 17:23:50 +02:00
2017-12-19 14:56:11 -05:00
2018-02-21 13:57:10 +00:00
2018-08-11 22:00:52 +01:00
2017-07-10 11:22:40 +01:00
2018-06-06 23:54:13 +08:00
2018-08-22 11:18:02 +01:00
2017-05-24 11:58:19 +02:00
2018-07-09 10:11:42 +01:00
2018-07-10 14:15:42 +02:00
2018-05-09 13:52:05 +01:00
2018-07-30 17:18:03 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-07-10 17:49:16 +02:00
2018-05-31 13:31:55 +02:00
2017-11-16 10:36:13 +00:00
2017-09-11 20:44:39 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-08-06 13:36:21 +01:00
2017-05-24 11:58:19 +02:00
2018-06-02 09:45:55 +02:00
2018-08-06 15:20:02 +03:00
2017-05-24 11:58:19 +02:00
2018-04-26 15:19:17 +01:00
2018-03-13 12:17:31 +00:00
2017-05-24 11:58:19 +02:00
2018-06-29 18:26:00 +01:00
2017-05-24 11:58:19 +02:00
2015-11-12 15:01:54 +08:00
2018-02-13 14:49:20 +00:00
2018-07-30 21:14:16 +01:00
2018-01-15 18:26:56 +00:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-07-09 13:28:02 +02:00
2017-10-11 12:13:20 +01:00
2018-04-26 15:19:17 +01:00
2018-04-12 13:25:16 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2016-09-21 18:30:52 +02:00
2018-01-10 17:24:36 +00:00
2017-05-24 11:58:19 +02:00
2018-01-05 19:36:07 +00:00
2017-05-24 11:58:19 +02:00
2018-06-15 14:47:47 +01:00
2018-04-30 21:54:31 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-06-14 18:12:42 +01:00
2018-05-08 12:41:13 +01:00
2018-03-20 20:21:32 +00:00
2017-05-24 11:58:19 +02:00
2017-11-12 16:36:16 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-04-27 16:46:19 +01:00
2017-05-24 11:58:19 +02:00
2018-04-27 16:46:19 +01:00
2018-04-27 16:46:19 +01:00
2018-02-08 12:29:57 +00:00
2018-02-06 15:51:33 +00:00
2018-07-12 23:48:41 +02:00
2018-07-09 10:11:42 +01:00
2017-05-24 11:58:19 +02:00
2018-07-09 10:11:42 +01:00
2018-06-20 10:53:30 +00:00
2018-06-20 10:53:30 +00:00
2017-05-24 11:58:19 +02:00
2017-11-01 12:46:38 +00:00
2017-11-01 12:46:38 +00:00
2018-04-27 16:46:19 +01:00
2017-05-24 11:58:19 +02:00
2018-07-09 10:11:42 +01:00
2018-01-04 22:19:30 +01:00
2018-07-09 10:11:42 +01:00
2018-03-28 11:55:50 +00:00
2013-01-13 13:11:57 -05:00
2017-11-16 11:12:32 +00:00
2017-05-24 11:58:19 +02:00
2018-07-16 15:59:44 +01:00
2017-05-24 11:58:19 +02:00
2018-06-28 16:59:39 +00:00
2018-06-26 09:30:19 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-07-30 18:33:39 +01:00
2017-05-24 11:58:19 +02:00
2018-01-31 22:10:51 +00:00
2018-07-16 15:59:44 +01:00
2018-05-29 17:16:38 +02:00
2018-02-02 10:10:43 +01:00
2008-04-08 02:59:05 +00:00
2017-11-28 14:16:25 +00:00
2017-05-24 11:58:19 +02:00
2018-07-30 21:15:03 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-05-31 13:31:55 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-10-05 15:02:39 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-02-16 12:49:43 +00:00
2017-05-24 11:58:19 +02:00
2018-07-10 14:16:24 +02:00
2017-05-24 11:58:19 +02:00
2018-07-10 14:16:41 +02:00
2017-05-24 11:58:19 +02:00
2018-07-30 12:39:27 +05:30
2018-07-16 15:59:44 +01:00
2018-07-09 10:11:42 +01:00
2018-06-11 14:59:39 +01:00
2018-06-11 14:59:39 +01:00
2018-07-09 15:59:39 +01:00
2018-07-09 15:59:39 +01:00
2018-05-08 12:27:55 +01:00
2017-10-06 12:49:12 +01:00
2017-10-26 12:27:17 +01:00
2017-05-24 11:58:19 +02:00
2018-07-18 14:26:47 +02:00
2018-04-26 11:34:15 +01:00
2017-05-24 11:58:19 +02:00
2017-10-26 18:51:51 +02:00
2017-05-24 11:58:19 +02:00
2018-05-31 14:29:33 +02:00
2017-05-24 11:58:19 +02:00
2017-11-28 14:11:29 +00:00
2017-05-24 11:58:19 +02:00
2018-06-12 16:13:51 +01:00
2018-06-12 16:13:44 +01:00
2018-06-21 11:43:32 -05:00
2018-08-11 21:52:17 +01:00
2018-06-21 11:43:32 -05:00
2018-06-21 13:55:19 +02:00
2018-08-20 12:40:21 +02:00
2017-11-01 12:46:38 +00:00
2018-04-10 11:04:07 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-10-26 12:27:17 +01:00
2017-05-24 11:58:19 +02:00
2017-12-06 10:07:10 +00:00
2018-05-28 13:45:50 +01:00
2018-08-07 14:50:53 +00:00
2018-07-11 17:41:46 +02:00
2018-02-06 15:52:29 +00:00
2018-05-29 17:11:32 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-08-10 10:43:37 +01:00
2017-05-24 11:58:19 +02:00
2018-06-11 14:30:16 +01:00
2018-04-13 15:25:26 +01:00
2014-02-20 18:27:24 -05:00
2018-07-30 21:15:22 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-06-11 14:59:39 +01:00
2017-05-24 11:58:19 +02:00
2018-07-18 14:26:47 +02:00
2018-07-18 14:26:47 +02:00
2018-07-18 14:26:47 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2014-06-28 12:49:38 -04:00
2017-05-24 11:58:19 +02:00
2018-07-18 14:26:47 +02:00
2018-07-18 14:26:47 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-02-03 12:12:28 +01:00
2018-05-31 12:02:36 +02:00
2018-05-28 08:41:11 +00:00
2017-02-06 14:40:38 +01:00
2017-02-06 14:40:38 +01:00
2018-05-28 09:22:55 -04:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-08-09 01:08:46 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-07-30 21:15:22 +01:00
2018-06-15 13:10:36 +01:00
2018-07-11 10:43:17 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-03-13 12:17:31 +00:00
2018-04-27 16:46:19 +01:00
2017-05-24 11:58:19 +02:00
2018-06-20 10:53:30 +00:00
2017-07-12 22:36:30 +02:00
2016-05-23 10:52:10 -04:00
2018-07-31 18:52:37 +01:00
2018-07-09 10:11:42 +01:00
2018-07-12 23:48:41 +02:00
2018-05-28 09:22:55 -04:00
2016-08-13 10:31:26 +02:00