Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-q931.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ronnie Sahlberg <sahlberg@xxxxxxxxxxxxxxxxx>
Date: Mon, 10 Nov 2003 02:14:07 -0600 (CST)
sahlberg    2003/11/10 02:14:07 CST

  Modified files:
    .                    packet-q931.c 
  Log:
  The Q.931 dissector never checked whether the codeset variable was set to a reasonable value or not.
  
  This was problematic and caused crashes since this variable is used as an index into an array where we grab a
  pointer (which is later dereferenced).
  
  Dereferencing that pointer will have surprising effects. Usually crashes.
  
  Update Q.931 to verify sanity of the codeset variable everytime it gets set.
  
  Revision  Changes    Path
  1.63      +28 -2     ethereal/packet-q931.c