Christoph M. Becker
efb86aef12
Fix #68180 : iconv_mime_decode can return extra characters in a header
...
Basically, the algorithm to append a converted string to an existing
`smart_str` works by increasing the `smart_str` buffer, to let `iconv`
convert characters until there is no more space, to set the new length
of the `smart_str` and to repeat until there is no more input.
Formerly, the new length calculation has been wrong, though, since we
would have to take the old `out_len` into account (`buf_growth -
old_out_len - out_len`). However, since there is no need to take the
old `out_len` into account when increasing the `smart_str` buffer, we
can simplify the fix, avoiding an additional variable.
2018-08-26 13:18:35 +02:00
..
2018-05-19 13:09:56 +02:00
2018-08-13 15:59:08 +02:00
2018-07-22 17:42:10 +02:00
2018-08-02 18:59:34 +02:00
2018-01-02 12:53:31 +08:00
2018-05-18 17:39:12 +02:00
2018-06-12 15:30:14 +02:00
2018-01-02 12:53:31 +08:00
2018-07-09 21:21:41 +02:00
2018-04-29 19:23:07 +01:00
2018-07-16 16:52:36 -07:00
2018-01-02 12:53:31 +08:00
2018-07-07 12:07:43 +02:00
2018-02-23 11:27:14 +01:00
2018-03-30 19:22:23 +02:00
2018-08-05 20:26:40 +02:00
2018-07-02 17:27:43 +02:00
2018-01-02 12:53:31 +08:00
2018-08-26 13:18:35 +02:00
2018-04-14 13:04:40 +02:00
2018-01-02 12:53:31 +08:00
2018-08-09 22:07:24 +02:00
2018-01-02 12:53:31 +08:00
2018-04-23 22:00:24 -07:00
2018-08-22 12:51:06 +02:00
2018-08-04 12:51:57 +02:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-06-14 02:38:39 +03:00
2018-01-02 23:42:29 +02:00
2018-01-22 17:02:54 +01:00
2018-08-16 13:56:20 +08:00
2018-08-19 20:14:26 +01:00
2018-02-28 02:13:28 +01:00
2018-01-02 12:53:31 +08:00
2018-05-21 12:18:46 +02:00
2018-01-02 12:53:31 +08:00
2018-07-06 16:07:28 +02:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-07-30 18:27:59 +02:00
2018-08-03 07:08:53 +02:00
2018-06-29 18:34:53 +02:00
2018-04-23 22:00:24 -07:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-07-02 18:56:27 +02:00
2018-05-07 14:41:49 +02:00
2018-01-02 12:53:31 +08:00
2018-02-08 10:50:22 +01:00
2018-01-02 12:53:31 +08:00
2018-03-14 22:59:54 +01:00
2018-04-29 17:34:03 +01:00
2018-08-22 15:37:02 +02:00
2018-07-26 13:15:19 +02:00
2018-08-23 12:48:09 +02:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-11 14:29:49 +01:00
2018-01-02 12:53:31 +08:00
2018-02-08 10:50:22 +01:00
2018-02-08 10:50:22 +01:00
2018-02-08 10:50:22 +01:00
2018-02-08 10:50:22 +01:00
2018-02-08 10:50:22 +01:00
2018-01-02 12:53:31 +08:00
2018-07-13 20:13:51 +02:00
2018-08-06 09:37:16 +02:00
2018-08-06 01:22:17 +02:00