Campbell Barton
98cae94f6b
Fix potential out of bounds read in UTF8 string length calculation
...
The length checking wasn't accounting for null bytes within multi-byte
sequences and could step over the null bytes.
For BLI_strlen_utf8 this could result in an out of bounds read.
In practice most UTF8 data is validated so the extra checks
are mainly to prevent errors on invalid or corrupt UTF8 text.
2024-10-25 16:50:10 +11:00
..
2024-04-03 10:22:05 +11:00
2024-10-02 15:47:05 +10:00
2024-03-28 22:57:57 +11:00
2024-06-14 18:44:03 -04:00
2024-08-05 13:50:06 -04:00
2024-08-29 12:15:33 +02:00
2024-03-06 14:47:29 +11:00
2024-03-28 20:57:50 +11:00
2024-02-19 15:59:59 +01:00
2024-09-26 21:13:39 +10:00
2024-02-19 15:59:59 +01:00
2024-06-23 12:14:19 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-07-25 10:17:42 +10:00
2024-02-19 15:59:59 +01:00
2024-04-23 16:09:45 +10:00
2024-04-15 09:50:47 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-07 13:07:02 +10:00
2024-08-07 10:36:39 +02:00
2024-04-15 09:50:47 +10:00
2024-09-26 21:13:39 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-09-23 11:20:14 +10:00
2024-04-14 13:20:32 +02:00
2024-07-14 18:55:43 +10:00
2024-06-14 19:25:07 +02:00
2024-09-15 23:14:09 +10:00
2024-02-19 15:59:59 +01:00
2024-04-20 12:41:23 +10:00
2024-08-15 20:46:00 +10:00
2024-09-26 21:13:39 +10:00
2024-09-26 21:13:39 +10:00
2024-07-25 17:53:57 +02:00
2024-10-15 11:02:22 +02:00
2024-02-19 15:59:59 +01:00
2024-09-14 12:35:00 +10:00
2024-02-19 15:59:59 +01:00
2024-03-21 10:02:53 +11:00
2024-09-14 21:09:41 +02:00
2024-08-13 20:26:55 +02:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-03-05 11:29:04 -05:00
2024-07-12 15:59:56 +02:00
2024-05-07 13:07:02 +10:00
2024-02-19 15:59:59 +01:00
2024-09-18 13:15:00 +02:00
2024-09-14 12:35:00 +10:00
2024-04-27 11:58:02 +10:00
2024-05-03 12:05:56 +02:00
2024-09-25 18:56:32 +02:00
2024-06-08 12:09:24 -03:00
2024-09-22 17:39:54 +02:00
2024-07-14 18:55:43 +10:00
2024-05-28 14:09:40 +10:00
2024-05-02 16:22:19 +02:00
2024-09-23 12:28:05 +10:00
2024-05-31 10:58:19 +02:00
2024-04-11 20:47:07 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-09-15 23:14:10 +10:00
2024-08-16 17:20:19 +02:00
2024-02-19 15:59:59 +01:00
2024-05-04 15:06:46 +10:00
2024-04-15 09:50:47 +10:00
2024-08-30 16:42:29 +02:00
2024-09-12 20:28:35 +02:00
2024-10-05 17:58:41 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-03-28 20:57:50 +11:00
2024-06-05 11:18:23 +02:00
2024-03-07 16:23:35 -05:00
2024-04-04 10:55:10 +11:00
2024-03-13 14:52:57 -04:00
2024-02-19 15:59:59 +01:00
2024-03-27 10:25:31 +11:00
2024-02-19 15:59:59 +01:00
2024-09-26 21:13:39 +10:00
2024-09-26 21:13:39 +10:00
2024-02-19 15:59:59 +01:00
2024-04-12 14:34:17 +02:00
2024-10-25 16:50:10 +11:00
2024-05-04 15:06:46 +10:00
2024-05-07 13:07:02 +10:00
2024-03-06 16:14:34 +01:00
2024-10-10 10:37:17 +02:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-04-26 13:55:38 +10:00
2024-04-30 12:12:02 +10:00
2024-09-26 21:13:39 +10:00
2024-06-10 18:11:41 +02:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-18 15:41:12 +02:00
2024-02-20 15:20:11 +01:00
2024-03-08 17:15:08 +11:00
2024-02-19 15:59:59 +01:00
2024-09-26 21:13:39 +10:00
2024-09-26 21:13:39 +10:00