forked from osmocom/wireshark
Make sure we initialize a TVB. Fixes bug 2329.
svn path=/trunk/; revision=24543
This commit is contained in:
parent
af7d55655c
commit
7f097fdc9b
|
@ -295,11 +295,14 @@ XDayOf/fifth fifth_dayof
|
|||
#.FN_PARS SyntaxBMPString VAL_PTR = &wide_tvb
|
||||
|
||||
#.FN_HDR SyntaxBMPString
|
||||
tvbuff_t *wide_tvb;
|
||||
tvbuff_t *wide_tvb = NULL;
|
||||
char *string;
|
||||
#.END
|
||||
|
||||
#.FN_FTR SyntaxBMPString
|
||||
if (! wide_tvb) {
|
||||
return offset;
|
||||
}
|
||||
string = tvb_get_ephemeral_faked_unicode (wide_tvb, 0, tvb_length(wide_tvb) / 2, FALSE);
|
||||
proto_item_append_text(actx->created_item, " %s", string);
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ Wireshark Info
|
|||
|
||||
<listitem>
|
||||
<para>
|
||||
Wireshark could crash at any moment.
|
||||
<!-- Fixed in r????? -->
|
||||
<!-- (Bug <ulink url="http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=???">???</ulink>) -->
|
||||
The X.509sat dissector could crash.
|
||||
<!-- Fixed in r24543 -->
|
||||
<!-- (Bug <ulink url="http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2329">2329</ulink>) -->
|
||||
</para>
|
||||
<para>Versions affected: 0.2.0 to 0.99.7</para>
|
||||
<para>Versions affected: 0.99.5 to 0.99.8</para>
|
||||
<para>
|
||||
<!-- <ulink url="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-????">CVE-2007-????</ulink> -->
|
||||
</para>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* packet-x509sat.c */
|
||||
/* ../../tools/asn2wrs.py -b -e -p x509sat -c x509sat.cnf -s packet-x509sat-template SelectedAttributeTypes.asn */
|
||||
/* ../../tools/asn2wrs.py -b -e -p x509sat -c ./x509sat.cnf -s ./packet-x509sat-template -D . SelectedAttributeTypes.asn */
|
||||
|
||||
/* Input file: packet-x509sat-template.c */
|
||||
|
||||
|
@ -500,7 +500,7 @@ static const value_string x509sat_T_subset_vals[] = {
|
|||
static int
|
||||
dissect_x509sat_T_subset(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -627,7 +627,7 @@ static const value_string x509sat_PreferredDeliveryMethod_item_vals[] = {
|
|||
static int
|
||||
dissect_x509sat_PreferredDeliveryMethod_item(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -915,7 +915,7 @@ dissect_x509sat_T_absolute(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
|
|||
static int
|
||||
dissect_x509sat_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -1322,7 +1322,7 @@ dissect_x509sat_BOOLEAN(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
|
|||
int
|
||||
dissect_x509sat_TimeZone(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -1440,7 +1440,7 @@ dissect_x509sat_BitString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offs
|
|||
static int
|
||||
dissect_x509sat_Integer(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
NULL);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
@ -1512,7 +1512,7 @@ dissect_x509sat_SyntaxIA5String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, in
|
|||
static int
|
||||
dissect_x509sat_SyntaxBMPString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
#line 298 "x509sat.cnf"
|
||||
tvbuff_t *wide_tvb;
|
||||
tvbuff_t *wide_tvb = NULL;
|
||||
char *string;
|
||||
|
||||
offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_BMPString,
|
||||
|
@ -1520,6 +1520,9 @@ dissect_x509sat_SyntaxBMPString(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, in
|
|||
&wide_tvb);
|
||||
|
||||
#line 303 "x509sat.cnf"
|
||||
if (! wide_tvb) {
|
||||
return offset;
|
||||
}
|
||||
string = tvb_get_ephemeral_faked_unicode (wide_tvb, 0, tvb_length(wide_tvb) / 2, FALSE);
|
||||
proto_item_append_text(actx->created_item, " %s", string);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* packet-x509sat.h */
|
||||
/* ../../tools/asn2wrs.py -b -e -p x509sat -c x509sat.cnf -s packet-x509sat-template SelectedAttributeTypes.asn */
|
||||
/* ../../tools/asn2wrs.py -b -e -p x509sat -c ./x509sat.cnf -s ./packet-x509sat-template -D . SelectedAttributeTypes.asn */
|
||||
|
||||
/* Input file: packet-x509sat-template.h */
|
||||
|
||||
|
|
Loading…
Reference in New Issue