зеркало из https://github.com/mozilla/pjs.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:
Родитель
f4ddf92b9a
Коммит
b037291669
|
@ -420,6 +420,13 @@ ber_put_seqorset( BerElement *ber )
|
||||||
Seqorset *next;
|
Seqorset *next;
|
||||||
Seqorset **sos = &ber->ber_sos;
|
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
|
* If this is the toplevel sequence or set, we need to actually
|
||||||
* write the stuff out. Otherwise, it's already been put in
|
* write the stuff out. Otherwise, it's already been put in
|
||||||
|
|
Загрузка…
Ссылка в новой задаче