Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at tvbuff.c:864

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

ensure_contiguous_no_exception

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/tvbuff.c)expand/collapse
Show more  
 832  static const guint8*
 833  ensure_contiguous_no_exception(tvbuff_t *tvb, gint offset, gint length,
 834                  int *exception)
 835  {
 836          guint   abs_offset, abs_length;
 837   
 838          if (!check_offset_length_no_exception(tvb, offset, length,
 839              &abs_offset, &abs_length, exception)) {
 840                  return NULL;
 841          }
 842   
 843          /*
 844           * We know that all the data is present in the tvbuff, so 
 845           * no exceptions should be thrown.
 846           */
 847          if (tvb->real_data) {
 848                  return tvb->real_data + abs_offset;
 849          }
 850          else {
 851                  switch(tvb->type) {
 852                          case TVBUFF_REAL_DATA:
 853                                  DISSECTOR_ASSERT_NOT_REACHED();
 854                          case TVBUFF_SUBSET:
 855                                  return ensure_contiguous_no_exception(tvb->tvbuffs.subset.tvb,
 856                                                  abs_offset - tvb->tvbuffs.subset.offset,
 857                                                  abs_length, NULL);
 858                          case TVBUFF_COMPOSITE:
 859                                  return composite_ensure_contiguous_no_exception(tvb, abs_offset, abs_length);
 860                  }
 861          }
 862   
 863          DISSECTOR_ASSERT_NOT_REACHED();
 864          return NULL;
 865  }
Show more  




Change Warning 1125.30920 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: