Wireshark-bugs: [Wireshark-bugs] [Bug 1699] New: Bad decoding of Camel PromptAndCollectUserInfo

Date: Fri, 20 Jul 2007 16:35:30 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1699

           Summary: Bad decoding of Camel PromptAndCollectUserInfo
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: florent.drouin@xxxxxxxxxx


Build Information:
wireshark_TRUNK22356$ ./wireshark -v
wireshark 0.99.7

Copyright 1998-2007 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.6.4, with GLib 2.6.4, with libpcap
current-cvs.tcpdump.org.2007.07.17, with libz 1.2.2, with libpcre 4.5, with
Net-SNMP 5.1.2, with ADNS, without Lua, with GnuTLS 1.0.16, with Gcrypt 1.2.0,
with Heimdal Kerberos, without PortAudio, without AirPcap.

Running on Linux 2.6.15.4, with libpcap version
current-cvs.tcpdump.org.2007.07.17.

Built using gcc 3.3.5 (Debian 1:3.3.5-13).

--
There is a problem of decoding for the digitsResponse in the CAMEL
PromptAndCollectUserInformation return result.
The same message is correctly decoded as INAP (INAP and CAMEL are sometimes
very similar).

As a test, I did replace the hf_camel_promptAndCollectUserInformation with a -1
in packet-camel.c, and this seems to solve the current problem.
<<
static int dissect_returnResultData(proto_tree *tree, tvbuff_t *tvb, int
offset,asn1_ctx_t *actx) {
  proto_item *cause;

  switch(opcode){
    case opcode_promptAndCollectUserInformation:  /*
promptAndCollectUserInformation */
          offset= dissect_camel_ReceivedInformationArg(FALSE, tvb, offset,
actx, tree, hf_camel_promptAndCollectUserInformation ==> -1 );


      break;
>>

Of course, this is not the right file to correct.
But since the last changes in the dissector generation for ASN1 files, I am not
sure how to correct properly this bug.
I suppose there is something to change in camel.cnf ? Or maybe, there is a bad
check for the hf_ field ??


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.