зеркало из https://github.com/mozilla/pjs.git
Don't read past end of buffer.
This commit is contained in:
Родитель
29bf3a820c
Коммит
9dd7f8ab6d
|
@ -652,7 +652,7 @@ int nsParseMailMessageState::StartNewEnvelope(const char *line, PRUint32 lineLen
|
|||
int nsParseMailMessageState::ParseHeaders ()
|
||||
{
|
||||
char *buf = m_headers.GetBuffer();
|
||||
char *buf_end = buf + m_headers.GetSize();
|
||||
char *buf_end = buf + m_headers.GetBufferPos();
|
||||
while (buf < buf_end)
|
||||
{
|
||||
char *colon = PL_strchr (buf, ':');
|
||||
|
|
Загрузка…
Ссылка в новой задаче