зеркало из https://github.com/mozilla/pjs.git
In MIME encoder, put a check at the end of the loop if the source points to a null character then bump the
pointer. This fixes a problem when a separator is at the end of a header string. Bug 9762, r=cata.
This commit is contained in:
Родитель
e1a1f4d558
Коммит
d53ae8d00e
|
@ -948,6 +948,8 @@ convert_and_encode:
|
||||||
if (end == NULL)
|
if (end == NULL)
|
||||||
break;
|
break;
|
||||||
begin = end + 1;
|
begin = end + 1;
|
||||||
|
if ('\0' == *begin)
|
||||||
|
begin++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (srcbuf)
|
if (srcbuf)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче