Vadim Zeitlin
344cc940a0
Impose upper limit on memory allocation in wxString::PrintfV()
...
Don't loop indefinitely until we run out of memory, possibly after
wrapping around INT_MAX, but impose an arbitrary limit of 128MiB for the
max allocation done by wxString::PrintfV() when the provided format
string or one of the arguments are invalid.
This notably fixes a crash when trying to use "%c" to output an invalid
Unicode character.
Also improve comment explaining DoStringPrintfV() logic and change the
size type to size_t from int.
Co-Authored-By: Arrigo Marchiori <ardovm@yahoo.it >
2020-12-01 21:53:55 +01:00
..
2020-10-19 13:54:19 +02:00
2020-10-19 19:38:53 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-20 01:47:47 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-19 01:31:14 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-15 19:50:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-18 23:47:29 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-19 13:54:19 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-05-02 03:38:28 +02:00
2020-10-12 21:58:37 +02:00
2020-11-21 18:14:02 +01:00
2020-10-12 21:58:37 +02:00
2020-10-19 13:54:19 +02:00
2020-10-30 09:36:37 -07:00
2020-11-21 19:16:21 +02:00
2020-10-19 21:14:27 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-19 13:54:19 +02:00
2020-10-19 13:53:52 +02:00
2020-11-19 15:45:22 +01:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-18 23:47:29 +02:00
2020-12-01 21:53:55 +01:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-11-16 16:48:47 +01:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-12 21:58:37 +02:00
2020-10-18 20:15:14 +02:00
2020-11-19 13:06:37 +01:00
2020-10-12 21:58:37 +02:00
2018-11-04 18:28:33 +01:00
2019-03-20 17:07:56 -05:00
2020-10-20 01:47:47 +02:00
2020-10-06 00:37:56 +02:00
2020-10-06 00:37:56 +02:00
2017-11-02 01:53:29 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2019-11-30 23:24:54 +01:00
2020-09-26 01:43:20 +02:00
2020-09-26 01:43:20 +02:00
2020-07-23 16:25:39 +02:00
2020-05-02 17:02:36 +02:00
2020-05-02 17:02:36 +02:00
2020-09-26 01:43:20 +02:00
2020-05-02 17:02:36 +02:00
2020-07-23 16:25:39 +02:00
2020-05-02 17:02:36 +02:00
2020-05-02 17:02:36 +02:00
2020-09-26 01:43:20 +02:00
2020-05-02 17:02:36 +02:00
2020-07-23 16:25:39 +02:00
2020-05-02 17:02:36 +02:00
2020-05-02 17:02:36 +02:00
2020-09-26 01:43:20 +02:00
2020-05-02 17:02:36 +02:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2017-11-25 11:13:02 +01:00
2020-10-06 00:37:56 +02:00
2020-10-12 21:58:37 +02:00
2019-12-13 21:44:26 +01:00
2018-04-06 15:39:55 +02:00
2020-10-12 21:58:37 +02:00
2019-01-24 22:52:46 +01:00
2017-12-02 14:38:19 +01:00
2017-11-05 17:28:24 +01:00
2020-09-25 01:04:49 +02:00
2020-10-19 19:38:53 +02:00
2020-09-21 15:54:42 +02:00
2019-10-17 22:03:44 +02:00