зеркало из https://github.com/mozilla/gecko-dev.git
Bug 328900: Crash in StuffFixedBuffer; r=bsmedberg, sr=darin
This commit is contained in:
Родитель
bdeee1c1ae
Коммит
85822474d2
|
@ -235,6 +235,9 @@ struct FixedBuffer
|
|||
static PRIntn
|
||||
StuffFixedBuffer(void *closure, const char *buf, PRUint32 len)
|
||||
{
|
||||
if (!len)
|
||||
return 0;
|
||||
|
||||
FixedBuffer *fb = (FixedBuffer*) closure;
|
||||
|
||||
// strip the trailing null, we add it again later
|
||||
|
|
Загрузка…
Ссылка в новой задаче