(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.c) |
| |
| 1067 | | | static proto_item * |
| 1068 | | | proto_tree_new_item(field_info *new_fi, proto_tree *tree, int hfindex, |
| 1069 | | | tvbuff_t *tvb, gint start, gint length, gboolean little_endian) |
| 1070 | | | { |
| 1071 | | | proto_item *pi; |
| 1072 | | | guint32 value, n; |
| 1073 | | | float floatval; |
| 1074 | | | double doubleval; |
| 1075 | | | char *string; |
| 1076 | | | GHashTable *hash; |
| 1077 | | | GPtrArray *ptrs; |
| 1078 | | | |
| 1079 | | | |
| 1080 | | | |
| 1081 | | | |
| 1082 | | | |
| 1083 | | | |
| 1084 | | | |
| 1085 | | | |
| 1086 | | | |
| 1087 | | | |
| 1088 | | | if(field_info_tmp){ |
| 1089 | | | |
| 1090 | | | |
| 1091 | | | |
| 1092 | | | |
| 1093 | | | |
| 1094 | | | SLAB_FREE(field_info_tmp, field_info);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/slab.h |
| |
69 | #define SLAB_FREE(item, type) \ |
70 | { \ |
71 | ((union type ## slab_item *)item)->next_free = type ## _free_list; \ |
72 | type ## _free_list = (union type ## slab_item *)item; \ |
73 | } |
| |
|
| 1095 | | | } |
| 1096 | | | |
| 1097 | | | |
| 1098 | | | |
| 1099 | | | field_info_tmp=new_fi; |
| 1100 | | | |
| 1101 | | | switch(new_fi->hfinfo->type) { |
| 1102 | | | case FT_NONE: |
| 1103 | | | |
| 1104 | | | break; |
| 1105 | | | |
| 1106 | | | case FT_PROTOCOL: |
| 1107 | | | proto_tree_set_protocol_tvb(new_fi, tvb); |
| 1108 | | | break; |
| 1109 | | | |
| 1110 | | | case FT_BYTES: |
| 1111 | | | proto_tree_set_bytes_tvb(new_fi, tvb, start, length); |
| 1112 | | | break; |
| 1113 | | | |
| 1114 | | | case FT_UINT_BYTES: |
| 1115 | | | n = get_uint_value(tvb, start, length, little_endian); |
| 1116 | | | proto_tree_set_bytes_tvb(new_fi, tvb, start + length, n); |
| 1117 | | | |
| 1118 | | | |
| 1119 | | | |
| 1120 | | | new_fi->length = n + length; |
| 1121 | | | break; |
| 1122 | | | |
| 1123 | | | case FT_BOOLEAN: |
| 1124 | | | proto_tree_set_boolean(new_fi, |
| 1125 | | | get_uint_value(tvb, start, length, little_endian)); |
| 1126 | | | break; |
| 1127 | | | |
| 1128 | | | |
| 1129 | | | case FT_UINT8: |
| 1130 | | | case FT_UINT16: |
| 1131 | | | case FT_UINT24: |
| 1132 | | | case FT_UINT32: |
| 1133 | | | proto_tree_set_uint(new_fi, |
| 1134 | | | get_uint_value(tvb, start, length, little_endian)); |
| 1135 | | | break; |
| 1136 | | | |
| 1137 | | | case FT_INT64: |
| 1138 | | | case FT_UINT64: |
| 1139 | | | DISSECTOR_ASSERT( length <= 8 && length >= 1);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1140 | | | proto_tree_set_uint64_tvb(new_fi, tvb, start, length, little_endian); |
| 1141 | | | break; |
| 1142 | | | |
| 1143 | | | |
| 1144 | | | case FT_INT8: |
| 1145 | | | case FT_INT16: |
| 1146 | | | case FT_INT24: |
| 1147 | | | case FT_INT32: |
| 1148 | | | proto_tree_set_int(new_fi, |
| 1149 | | | get_int_value(tvb, start, length, little_endian)); |
| 1150 | | | break; |
| 1151 | | | |
| 1152 | | | case FT_IPv4: |
| 1153 | | | DISSECTOR_ASSERT(length == 4);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1154 | | | value = tvb_get_ipv4(tvb, start); |
| 1155 | | | proto_tree_set_ipv4(new_fi, little_endian ? GUINT32_SWAP_LE_BE(value) : value);
x /usr/include/glib-2.0/glib/gtypes.h |
| |
229 | # define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_IA32 (val)) |
| |
x /usr/include/glib-2.0/glib/gtypes.h |
| |
203 | # define GUINT32_SWAP_LE_BE_IA32(val) \ |
204 | (__extension__ \ |
205 | ({ register guint32 __v, __x = ((guint32) (val)); \ |
206 | if (__builtin_constant_p (__x)) \ |
207 | __v = GUINT32_SWAP_LE_BE_CONSTANT (__x); \ |
208 | else \ |
209 | __asm__ ("bswap %0" \ |
210 | : "=r" (__v) \ |
211 | : "0" (__x)); \ |
212 | __v; })) |
| |
x /usr/include/glib-2.0/glib/gtypes.h |
| |
147 | #define GUINT32_SWAP_LE_BE_CONSTANT(val) ((guint32) ( \ |
148 | (((guint32) (val) & (guint32) 0x000000ffU) << 24) | \ |
149 | (((guint32) (val) & (guint32) 0x0000ff00U) << 8) | \ |
150 | (((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | \ |
151 | (((guint32) (val) & (guint32) 0xff000000U) >> 24))) |
| |
|
| 1156 | | | break; |
| 1157 | | | |
| 1158 | | | case FT_IPXNET: |
| 1159 | | | DISSECTOR_ASSERT(length == 4);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1160 | | | proto_tree_set_ipxnet(new_fi, |
| 1161 | | | get_uint_value(tvb, start, 4, FALSE)); |
| 1162 | | | break; |
| 1163 | | | |
| 1164 | | | case FT_IPv6: |
| 1165 | | | DISSECTOR_ASSERT(length == 16);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1166 | | | proto_tree_set_ipv6_tvb(new_fi, tvb, start); |
| 1167 | | | break; |
| 1168 | | | |
| 1169 | | | case FT_ETHER: |
| 1170 | | | DISSECTOR_ASSERT(length == 6);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1171 | | | proto_tree_set_ether_tvb(new_fi, tvb, start); |
| 1172 | | | break; |
| 1173 | | | |
| 1174 | | | case FT_GUID: |
| 1175 | | | DISSECTOR_ASSERT(length == 16);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1176 | | | proto_tree_set_guid_tvb(new_fi, tvb, start, little_endian); |
| 1177 | | | break; |
| 1178 | | | |
| 1179 | | | case FT_OID: |
| 1180 | | | proto_tree_set_oid_tvb(new_fi, tvb, start, length); |
| 1181 | | | break; |
| 1182 | | | |
| 1183 | | | case FT_FLOAT: |
| 1184 | | | DISSECTOR_ASSERT(length == 4);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1185 | | | if (little_endian) |
| 1186 | | | floatval = tvb_get_letohieee_float(tvb, start); |
| 1187 | | | else |
| 1188 | | | floatval = tvb_get_ntohieee_float(tvb, start); |
| 1189 | | | proto_tree_set_float(new_fi, floatval); |
| 1190 | | | break; |
| 1191 | | | |
| 1192 | | | case FT_DOUBLE: |
| 1193 | | | DISSECTOR_ASSERT(length == 8);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1194 | | | if (little_endian) |
| 1195 | | | doubleval = tvb_get_letohieee_double(tvb, start); |
| 1196 | | | else |
| 1197 | | | doubleval = tvb_get_ntohieee_double(tvb, start); |
| 1198 | | | proto_tree_set_double(new_fi, doubleval); |
| 1199 | | | break; |
| 1200 | | | |
| 1201 | | | case FT_STRING: |
| 1202 | | | proto_tree_set_string_tvb(new_fi, tvb, start, length); |
| 1203 | | | break; |
| 1204 | | | |
| 1205 | | | case FT_STRINGZ: |
| 1206 | | | DISSECTOR_ASSERT(length >= -1);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
117 | #define DISSECTOR_ASSERT(expression) \ |
118 | ((void) ((expression) ? (void)0 : \ |
119 | __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
138 | #define __DISSECTOR_ASSERT(expression, file, lineno) \ |
139 | (REPORT_DISSECTOR_BUG( \ |
140 | ep_strdup_printf("%s:%u: failed assertion \"%s\"", \ |
141 | file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1207 | | | |
| 1208 | | | |
| 1209 | | | |
| 1210 | | | |
| 1211 | | | |
| 1212 | | | |
| 1213 | | | |
| 1214 | | | |
| 1215 | | | |
| 1216 | | | if (length == -1) { |
| 1217 | | | |
| 1218 | | | length = tvb_strsize(tvb, start); |
| 1219 | | | |
| 1220 | | | string = ep_alloc(length); |
| 1221 | | | |
| 1222 | | | tvb_memcpy(tvb, string, start, length); |
| 1223 | | | } else if (length == 0) { |
| 1224 | | | string = "[Empty]"; |
| 1225 | | | } else { |
| 1226 | | | |
| 1227 | | | |
| 1228 | | | |
| 1229 | | | |
| 1230 | | | |
| 1231 | | | |
| 1232 | | | |
| 1233 | | | |
| 1234 | | | |
| 1235 | | | |
| 1236 1246 |  | | [ Lines 1236 to 1246 omitted. ] |
| 1247 | | | |
| 1248 | | | |
| 1249 | | | |
| 1250 | | | |
| 1251 | | | |
| 1252 | | | |
| 1253 | | | |
| 1254 | | | |
| 1255 | | | |
| 1256 | | | |
| 1257 | | | string = tvb_get_ephemeral_string(tvb, |
| 1258 | | | start, |
| 1259 | | | length); |
| 1260 | | | } |
| 1261 | | | new_fi->length = length; |
| 1262 | | | proto_tree_set_string(new_fi, string); |
| 1263 | | | break; |
| 1264 | | | |
| 1265 | | | case FT_EBCDIC: |
| 1266 | | | proto_tree_set_ebcdic_string_tvb(new_fi, tvb, start, length); |
| 1267 | | | break; |
| 1268 | | | |
| 1269 | | | case FT_UINT_STRING: |
| 1270 | | | n = get_uint_value(tvb, start, length, little_endian); |
| 1271 | | | proto_tree_set_string_tvb(new_fi, tvb, start + length, n); |
| 1272 | | | |
| 1273 | | | |
| 1274 | | | |
| 1275 | | | |
| 1276 | | | |
| 1277 | | | |
| 1278 | | | |
| 1279 | | | |
| 1280 | | | |
| 1281 | | | |
| 1282 | | | new_fi->length = n + length; |
| 1283 | | | break; |
| 1284 | | | |
| 1285 | | | default: |
| 1286 | | | g_error("new_fi->hfinfo->type %d (%s) not handled\n",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
140 | #define g_error(...) G_STMT_START { \ |
141 | g_log (G_LOG_DOMAIN, \ |
142 | G_LOG_LEVEL_ERROR, \ |
143 | __VA_ARGS__); \ |
144 | for (;;) ; \ |
145 | } G_STMT_END |
| |
|
| 1287 | | | new_fi->hfinfo->type, |
| 1288 | | | ftype_name(new_fi->hfinfo->type)); |
| 1289 | | | DISSECTOR_ASSERT_NOT_REACHED();
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
131 | #define DISSECTOR_ASSERT_NOT_REACHED() \ |
132 | (REPORT_DISSECTOR_BUG( \ |
133 | ep_strdup_printf("%s:%u: failed assertion \"DISSECTOR_ASSERT_NOT_REACHED\"", \ |
134 | __FILE__, __LINE__))) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
106 | #define REPORT_DISSECTOR_BUG(message) \ |
107 | ((getenv("WIRESHARK_ABORT_ON_DISSECTOR_BUG") != NULL) ? \ |
108 | abort() : \ |
109 | THROW_MESSAGE(DissectorError, message)) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/exceptions.h |
| |
226 | #define THROW_MESSAGE(x, y) \ |
227 | except_throw(XCEPT_GROUP_WIRESHARK, (x), (y)) |
| |
|
| 1290 | | | break; |
Unreachable Control Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 1291 | | | } |
| 1292 | | | |
| 1293 | | | |
| 1294 | | | |
| 1295 | | | pi = proto_tree_add_node(tree, new_fi); |
| 1296 | | | |
| 1297 | | | |
| 1298 | | | |
| 1299 | | | |
| 1300 | | | field_info_tmp=NULL; |
| 1301 | | | |
| 1302 | | | |
| 1303 | | | |
| 1304 | | | if (new_fi->hfinfo->ref_count) { |
| 1305 | | | |
| 1306 | | | hash = PTREE_DATA(tree)->interesting_hfids;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
346 | #define PTREE_DATA(proto_tree) ((proto_tree)->tree_data) |
| |
|
| 1307 | | | ptrs = g_hash_table_lookup(hash, GINT_TO_POINTER(hfindex)); |
| 1308 | | | if (ptrs) { |
| 1309 | | | g_ptr_array_add(ptrs, new_fi); |
| 1310 | | | } |
| 1311 | | | } |
| 1312 | | | |
| 1313 | | | return pi; |
| 1314 | | | } |
| |