1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext
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-08-02 18:59:34 +02:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-07-16 16:52:36 -07:00
2018-01-02 12:53:31 +08:00
2018-02-23 11:27:14 +01:00
2018-07-02 17:27:43 +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-04-23 22:00:24 -07:00
2018-08-22 12:51:06 +02:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-02-28 02:13:28 +01: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-01-02 12:53:31 +08:00
2018-08-03 07:08: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-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-03-14 22:59:54 +01: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-01-02 12:53:31 +08:00
2018-07-13 20:13:51 +02:00