зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug # 166189 - Segmentation fault on invalid filter string.
Check that a sequence of set has been created before using it inside ber_put_seqorset().
This commit is contained in:
Родитель
bf2d2c35a9
Коммит
cbdc43aebe
|
@ -420,6 +420,13 @@ ber_put_seqorset( BerElement *ber )
|
|||
Seqorset *next;
|
||||
Seqorset **sos = &ber->ber_sos;
|
||||
|
||||
if ( *sos == NULL ) {
|
||||
/*
|
||||
* No sequence or set to put... fatal error.
|
||||
*/
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
/*
|
||||
* If this is the toplevel sequence or set, we need to actually
|
||||
* write the stuff out. Otherwise, it's already been put in
|
||||
|
|
Загрузка…
Ссылка в новой задаче