forked from osmocom/wireshark
Throw an exception if we're handed a null pointer when we weren't
expecting one. Fixes bug 200. svn path=/trunk/; revision=14488
This commit is contained in:
parent
b133b98f15
commit
81a381effd
|
@ -704,6 +704,8 @@ static gboolean dissect_coseventcomm(tvbuff_t *tvb, packet_info *pinfo, proto_tr
|
|||
case Request:
|
||||
case Reply:
|
||||
|
||||
if (!operation)
|
||||
THROW(ReportedBoundsError);
|
||||
|
||||
if (!strcmp(operation, CosEventComm_PushConsumer_push_op )) {
|
||||
decode_CosEventComm_PushConsumer_push(tvb, pinfo, tree, offset, header, operation);
|
||||
|
|
|
@ -288,6 +288,8 @@ static gboolean decode_user_exception(tvbuff_t *tvb _U_, packet_info *pinfo _U_,
|
|||
/*gboolean be _U_;*/ /* big endianess */
|
||||
|
||||
|
||||
if (!header->exception_id)
|
||||
THROW(ReportedBoundsError);
|
||||
|
||||
if (!strcmp(header->exception_id, user_exception_CosNaming_NamingContext_NotFound )) {
|
||||
decode_ex_CosNaming_NamingContext_NotFound(tvb, pinfo, tree, offset, header, operation); /* IDL:omg.org/CosNaming/NamingContext/NotFound:1.0 */
|
||||
|
@ -1572,6 +1574,8 @@ static gboolean dissect_cosnaming(tvbuff_t *tvb, packet_info *pinfo, proto_tree
|
|||
case Request:
|
||||
case Reply:
|
||||
|
||||
if (!operation)
|
||||
THROW(ReportedBoundsError);
|
||||
|
||||
if (!strcmp(operation, CosNaming_NamingContext_bind_op )) {
|
||||
decode_CosNaming_NamingContext_bind(tvb, pinfo, tree, offset, header, operation);
|
||||
|
|
Loading…
Reference in New Issue