Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Data Flow  at packet-h223.c:1145

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

h223_mux_check_hdlc

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-h223.c)expand/collapse
Show more  
 1137  static gboolean h223_mux_check_hdlc(int h223_level, guint32 nbytes, guint32 tail_buf)
 1138  {
 1139      guint32 masked;
 1140   
 1141      switch(h223_level) {
 1142          case 0:
 1143              /* level 0 isn't byte-aligned, so is a complete pain to implement */
 1144              DISSECTOR_ASSERT_NOT_REACHED();
 1145              return FALSE;
 1146   
 1147          case 1:
 1148              masked = tail_buf & 0xffff;
 1149              return nbytes >= 2 && masked == 0xE14D;
 1150   
 1151          case 2: case 3:
 1152              masked = tail_buf & 0xffff;
 1153              return nbytes >= 2 && (masked == 0xE14D || masked == (0xE14D ^ 0xFFFF));
 1154   
 1155          default:
 1156              DISSECTOR_ASSERT_NOT_REACHED();
 1157              return FALSE;
 1158      }
 1159  }
Show more  




Change Warning 2631.30365 : Unreachable Data Flow

Because they are very similar, this warning shares annotations with warning 2631.30366.

Priority:
State:
Finding:
Owner:
Note: