Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Data Flow  at tvbuff.c:893

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

fast_ensure_contiguous

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/tvbuff.c)expand/collapse
Show more  
 868  static const guint8*
 869  fast_ensure_contiguous(tvbuff_t *tvb, gint offset, guint length)
 870  {
 871          guint   end_offset;
 872          guint   u_offset;
 873   
 874          DISSECTOR_ASSERT(tvb && tvb->initialized);
 875          if (offset < 0 || !tvb->real_data) {
 876              return ensure_contiguous(tvb, offset, length);
 877          }
 878   
 879          u_offset = offset;
 880          end_offset = u_offset + length;
 881   
 882          /* don't need to check for overflow  because length <= 8 */
 883   
 884          if (end_offset <= tvb->length) {
 885                  return tvb->real_data + u_offset;
 886          }
 887   
 888          if (end_offset > tvb->reported_length) {
 889                  THROW(ReportedBoundsError);
 890          }
 891          THROW(BoundsError);
 892          /* not reached */
 893          return 0;
 894  }
Show more  




Change Warning 1200.30962 : Unreachable Data Flow

Priority:
State:
Finding:
Owner:
Note: