Patrick Uiterwijk
5547c12503
Fix format-truncation compile failure by typecasting USB IDs ( #8250 )
...
This patch adds safe_atoux16 for parsing an unsigned hexadecimal 16bit int, and
uses that for parsing USB device and vendor IDs.
This fixes a compile error with gcc-8 because while we know that USB IDs are 2 bytes,
the compiler does not know that.
../src/udev/udev-builtin-hwdb.c:80:38: error: '%04X' directive output may be
truncated writing between 4 and 8 bytes into a region of size between 2 and 6
[-Werror=format-truncation=]
Signed-off-by: Adam Williamson <awilliam@redhat.com >
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2018-02-22 19:41:30 +01:00
..
2017-05-07 20:16:47 -04:00
2018-02-05 09:48:38 +01:00
2017-12-07 17:12:09 +09:00
2017-11-28 20:21:25 +09:00
2017-11-28 20:33:58 +09:00
2017-11-28 20:34:32 +09:00
2017-11-28 20:21:25 +09:00
2018-02-14 00:11:16 +01:00
2017-12-25 11:48:21 +01:00
2017-11-19 19:08:15 +01:00
2017-11-28 20:34:36 +09:00
2017-11-19 19:08:15 +01:00
2018-02-21 16:43:36 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-28 22:17:00 +09:00
2017-12-25 11:48:21 +01:00
2017-11-19 19:08:15 +01:00
2017-12-15 14:57:07 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-01-05 13:58:32 +01:00
2017-11-19 19:08:15 +01:00
2018-02-19 15:18:54 +01:00
2018-02-09 16:49:54 +09:00
2017-12-06 10:32:38 +09:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-14 14:08:21 +09:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-02-21 09:18:14 +09:00
2018-01-11 14:44:31 +01:00
2018-02-09 17:53:28 +01:00
2017-11-19 19:08:15 +01:00
2017-12-14 19:02:29 +01:00
2017-11-19 19:08:15 +01:00
2018-02-20 15:39:31 +01:00
2017-11-19 19:08:15 +01:00
2018-02-05 09:48:38 +01:00
2018-02-05 15:20:46 +01:00
2018-01-11 14:44:31 +01:00
2017-04-25 08:49:16 -04:00
2017-11-19 19:08:15 +01:00
2018-02-12 11:07:55 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-28 09:26:14 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-02-21 09:06:51 +09:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-02-21 09:17:52 +09:00
2017-11-19 19:08:15 +01:00
2018-02-22 19:41:30 +01:00
2018-02-09 12:27:34 +01:00
2017-11-30 20:54:31 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-02-19 15:02:13 +01:00
2018-01-22 16:26:55 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-04 13:27:27 +01:00
2017-11-19 19:08:15 +01:00
2017-11-28 21:30:30 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-02-10 11:10:07 +09:00
2017-11-29 12:32:56 +01:00
2017-11-30 20:43:25 +01:00
2017-11-19 19:08:15 +01:00
2017-12-05 13:49:12 +01:00
2018-01-28 14:50:01 +01:00
2018-02-13 08:57:31 +01:00
2017-11-19 19:08:15 +01:00
2017-12-06 19:30:08 +00:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-20 10:53:26 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-15 14:57:07 +01:00
2018-02-21 09:57:35 +01:00
2018-02-19 15:18:54 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-01-23 21:29:31 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-02-20 15:41:49 +01:00
2017-11-19 19:08:15 +01:00