Heinrich Schuchardt
a1b633df55
lib: uuid: alignment error in gen_rand_uuid()
...
Packed structures like struct uuid are not aligned. GCC 9.1 therefore
throws an error when trying to compile gen_rand_uuid().
lib/uuid.c: In function ‘gen_rand_uuid’:
lib/uuid.c:244:2: error: converting a packed ‘struct uuid’ pointer
(alignment 1) to a ‘unsigned int’ pointer (alignment 4) may result in
an unaligned pointer value [-Werror=address-of-packed-member]
244 | unsigned int *ptr = (unsigned int *)&uuid;
| ^~~~~~~~
Generate the uuid in a properly aligned buffer.
The byte order of a random number should not matter. Do not call
cpu_to_be32() to change the byte order.
Reported-by: Ramon Fried <rfried.dev@gmail.com >
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
2019-07-29 09:32:13 -04:00
..
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-04-23 00:37:27 +02:00
2019-07-16 22:17:18 +00:00
2019-07-16 22:17:23 +00:00
2019-07-16 22:17:16 +00:00
2018-08-24 13:19:53 -04:00
2019-04-11 20:10:50 -06:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-07-19 15:12:07 +02:00
2019-07-18 11:31:23 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-05-05 08:48:50 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-04-03 10:26:46 -04:00
2018-09-18 00:01:18 -06:00
2019-07-16 22:17:22 +00:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-08 20:18:44 -05:00
2018-12-23 02:39:52 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-05-05 08:48:50 -04:00
2019-04-23 20:26:43 -06:00
2014-12-11 13:18:41 -07:00
2018-05-07 09:34:12 -04:00
2019-07-10 16:52:58 -06:00
2019-06-05 09:16:32 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-07-10 16:52:58 -06:00
2019-02-09 07:50:54 -05:00
2018-06-13 07:49:12 -04:00
2018-05-30 11:59:21 +02:00
2019-07-13 11:11:29 -04:00
2018-05-07 09:34:12 -04:00
2018-08-31 11:59:44 -04:00
2014-09-16 12:23:56 -04:00
2019-02-02 08:19:17 -05:00
2019-04-24 07:27:32 -04:00
2018-05-10 20:38:35 -04:00
2019-06-21 10:07:11 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-04-28 18:32:23 -04:00
2018-12-05 06:01:34 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-09-05 16:02:34 -04:00
2018-12-02 21:59:37 +01:00
2019-06-05 09:16:32 -07:00
2018-05-07 09:34:12 -04:00
2018-09-20 20:11:01 +05:30
2018-05-07 09:34:12 -04:00
2019-06-04 22:09:26 +02:00
2018-05-07 09:34:12 -04:00
2018-12-05 06:01:34 -07:00
2018-11-29 09:30:06 -07:00
2019-02-19 08:55:43 -05:00
2018-11-29 09:30:06 -07:00
2019-07-10 16:52:58 -06:00
2019-07-29 09:32:13 -04:00
2019-06-07 10:52:30 -04:00
2019-05-05 08:48:50 -04:00