Brian Gianforcaro
afa0fb55b0
Kernel: Don't cast to NetworkOrdered<u16>* from random data
...
NetworkOrdered is a non trivial type, and it's undefined behavior to
cast a random pointer to it and then pretend it's that type.
Instead just call AK::convert_between_host_and_network_endian on the
individual u16*. This suppresses static analysis warnings.
I don't think there was a "bug" in the previous code, it worked, but
it was very brittle.
2021-09-01 18:06:14 +02:00
..
2021-04-22 11:22:27 +02:00
2021-08-06 22:25:00 +02:00
2021-08-23 01:07:45 +02:00
2021-08-23 01:07:45 +02:00
2021-08-23 01:07:45 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-08-29 22:19:42 +02:00
2021-08-22 03:34:09 +02:00
2021-08-07 11:48:00 +02:00
2021-08-31 16:00:53 +02:00
2021-08-29 02:21:01 +02:00
2021-07-11 18:00:31 +02:00
2021-08-03 10:20:51 +02:00
2021-08-23 01:07:45 +02:00
2021-08-23 01:07:45 +02:00
2021-08-06 22:25:00 +02:00
2021-08-03 18:54:23 +02:00
2021-08-08 00:03:45 +02:00
2021-08-06 14:05:58 +02:00
2021-08-29 22:19:42 +02:00
2021-04-30 23:11:56 +02:00
2021-08-24 16:37:28 +02:00
2021-08-22 03:34:09 +02:00
2021-08-23 01:07:45 +02:00
2021-08-23 01:07:45 +02:00
2021-08-23 01:07:45 +02:00
2021-08-23 01:07:45 +02:00
2021-08-29 22:19:42 +02:00
2021-08-29 22:19:42 +02:00
2021-05-12 13:47:07 +02:00
2021-09-01 18:06:14 +02:00
2021-08-22 03:34:09 +02:00
2021-04-22 11:22:27 +02:00
2021-08-29 02:21:01 +02:00
2021-08-22 03:34:09 +02:00