Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-dcerpc.c:1043

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

dissect_dcerpc_float

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc.c)expand/collapse
Show more  
 1032  dissect_dcerpc_float(tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
 1033                      proto_tree *tree, guint8 *drep,
 1034                      int hfindex, gfloat *pdata)
 1035  {
 1036          gfloat data;
 1037   
 1038   
 1039          switch(drep[1]) {
 1040                  case(DCE_RPC_DREP_FP_IEEE):
 1041                          data = ((drep[0] & 0x10)
 1042                                          ? tvb_get_letohieee_float(tvb, offset)
 1043                                          : tvb_get_ntohieee_float(tvb, offset));
 1044                          if (tree) {
 1045                                  proto_tree_add_float(tree, hfindex, tvb, offset, 4, data);
 1046                          }
 1047                          break;
 1048                  case(DCE_RPC_DREP_FP_VAX):  /* (fall trough) */
 1049                  case(DCE_RPC_DREP_FP_CRAY): /* (fall trough) */
 1050                  case(DCE_RPC_DREP_FP_IBM):  /* (fall trough) */
 1051                  default:
 1052                          /* ToBeDone: non IEEE floating formats */
 1053                          /* Set data to a negative infinity value */
 1054                          data = -G_MAXFLOAT;
 1055                          if (tree) {
 1056                                  proto_tree_add_debug_text(tree, "DCE RPC: dissection of non IEEE floating formats currently not implemented (drep=%u)!", drep[1]);
 1057                          }
 1058          }
 1059      if (pdata)
 1060          *pdata = data;
 1061      return offset + 4;
 1062  }
Show more  




Change Warning 5465.35685 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: