Kawe Mazidjatari
89431cc61f
Fix crasher by clamping stringcmd length before tokenizing it
...
Possible crasher is to send a stringcmd >= 512 in size with funny UTF8 characters and have CUtlBuffer::ParseToken() read past it. Apparently seems to be mostly a problem on 32bit? I was unable to initiate a crash, though one string caused interesting behavior before, and there was one report of the dedicated server being 'crashed' with this. There is no reason to tokenize it up to 512 bytes if the game is only ever going to allow 128, so clamp it to 129 and if the user exceeds it then they still get the message and we just jettison it.
2023-08-07 16:52:35 +02:00
..
2023-08-07 16:52:35 +02:00
2023-08-05 20:29:07 +02:00
2023-08-04 17:45:30 +02:00
2022-05-15 00:29:25 +02:00
2023-03-27 17:42:11 +02:00
2023-07-19 16:00:36 +02:00
2023-07-22 21:15:01 +02:00
2023-08-04 10:49:39 +02:00
2023-07-15 22:03:33 +02:00
2023-07-03 00:02:08 +02:00
2023-04-02 17:02:04 +02:00
2023-07-02 23:01:29 +02:00
2023-05-15 14:47:03 +02:00
2023-06-26 22:34:24 +02:00
2023-07-02 23:01:29 +02:00
2023-05-15 14:47:03 +02:00
2022-10-23 23:47:27 +02:00
2023-01-25 02:26:52 +01:00
2023-06-03 18:08:16 +02:00
2023-07-02 23:01:29 +02:00
2023-01-23 23:17:51 +01:00
2022-10-23 01:20:49 +02:00
2023-01-25 02:26:52 +01:00
2023-01-25 02:26:52 +01:00
2023-07-02 23:01:29 +02:00
2022-04-18 03:35:24 +02:00
2023-01-25 02:26:52 +01:00
2023-06-18 22:16:43 +02:00
2023-07-03 00:02:08 +02:00
2023-07-19 02:33:22 +02:00
2023-07-02 23:01:29 +02:00
2023-02-19 09:43:12 +01:00
2023-07-02 23:01:29 +02:00
2023-01-25 02:26:52 +01:00
2023-07-02 23:01:29 +02:00
2023-01-22 16:48:16 +01:00
2023-01-25 02:26:52 +01:00
2023-06-26 22:34:24 +02:00
2023-07-03 00:02:08 +02:00
2023-07-12 17:43:55 +02:00
2023-07-13 08:18:28 +02:00
2023-05-16 00:44:59 +02:00
2023-07-02 23:01:29 +02:00
2023-07-11 08:42:02 +02:00
2023-07-03 00:02:08 +02:00
2023-05-15 14:47:03 +02:00
2022-05-15 00:29:25 +02:00
2023-05-10 00:05:38 +02:00
2022-08-29 02:21:32 +02:00
2023-06-19 13:53:56 +02:00
2023-07-02 23:01:29 +02:00
2023-04-23 11:35:09 +02:00
2023-07-02 23:01:29 +02:00
2023-07-22 21:14:04 +02:00
2023-07-02 23:01:29 +02:00
2023-04-10 22:35:41 +02:00
2023-07-02 23:01:29 +02:00
2023-01-30 22:08:01 +01:00
2023-07-02 23:01:29 +02:00
2023-07-02 11:28:07 +02:00
2023-07-03 00:02:08 +02:00
2023-07-22 21:14:04 +02:00
2023-07-02 23:01:29 +02:00
2023-07-02 23:01:29 +02:00