(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/giop/packet-cosnaming.c) |
| |
| 1297 | | | static void decode_CosNaming_BindingIterator_next_n(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, *, gchar *operation _U_) { |
| 1298 | | | |
| 1299 | | | gboolean stream_is_big_endian; |
| 1300 | | | |
| 1301 | | | |
| 1302 | | | |
| 1303 | | | |
| 1304 | | | guint32 u_octet4; |
| 1305 | | | guint8 u_octet1; |
| 1306 | | | guint32 u_octet4_loop_bl; |
| 1307 | | | guint32 i_bl; |
| 1308 | | | |
| 1309 | | | |
| 1310 | | | |
| 1311 | | | |
| 1312 | | | stream_is_big_endian = is_big_endian(); |
| 1313 | | | |
| 1314 | | | switch(->message_type) { |
| 1315 | | | |
| 1316 | | | case Request: |
| 1317 | | | |
| 1318 | | | u_octet4 = get_CDR_ulong(tvb,offset,stream_is_big_endian, boundary); |
Ignored Return Value
The return value of get_CDR_ulong() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of get_CDR_ulong() is checked 97% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt get_CDR_ulong() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 1319 | | | if (tree) { |
Event 2:
Skipping " if". tree evaluates to false.
hide
|
|
| 1320 | | | proto_tree_add_text(tree,tvb,*offset-4,4,"how_many = %u",u_octet4); |
| 1321 | | | } |
| 1322 | | | |
| 1323 | | | break; |
| 1324 | | | |
| 1325 | | | case Reply: |
| 1326 | | | |
| 1327 | | | switch(->rep_status) { |
| 1328 | | | |
| 1329 | | | case NO_EXCEPTION: |
| 1330 | | | |
| 1331 | | | u_octet1 = get_CDR_boolean(tvb,offset); |
| 1332 | | | if (tree) { |
| 1333 | | | proto_tree_add_text(tree,tvb,*offset-1,1,"Operation_Return_Value = %u",u_octet1); |
| 1334 | | | } |
| 1335 | | | |
| 1336 | | | u_octet4_loop_bl = get_CDR_ulong(tvb, offset, stream_is_big_endian, boundary); |
| 1337 | | | if (tree) { |
| 1338 | | | proto_tree_add_text(tree,tvb,*offset-4, 4 ,"Seq length of bl = %u",u_octet4_loop_bl); |
| 1339 | | | } |
| 1340 | | | |
| 1341 | | | for (i_bl=0; i_bl < u_octet4_loop_bl; i_bl++) { |
| 1342 | | | |
| 1343 | | | |
| 1344 | | | |
| 1345 | | | |
| 1346 | | | |
| 1347 | | | decode_CosNaming_Binding_st(tvb, pinfo, tree, offset, , operation); |
| 1348 | | | |
| 1349 | | | |
| 1350 | | | |
| 1351 | | | |
| 1352 | | | } |
| 1353 | | | |
| 1354 | | | break; |
| 1355 | | | |
| 1356 | | | case USER_EXCEPTION: |
| 1357 | | | |
| 1358 | | | break; |
| 1359 | | | |
| 1360 | | | default: |
| 1361 | | | |
| 1362 | | | |
| 1363 | | | |
| 1364 | | | g_warning("Unknown Exception ");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
153 | #define g_warning(...) g_log (G_LOG_DOMAIN, \ |
154 | G_LOG_LEVEL_WARNING, \ |
155 | __VA_ARGS__) |
| |
|
| 1365 | | | |
| 1366 | | | |
| 1367 | | | |
| 1368 | | | break; |
| 1369 | | | |
| 1370 | | | |
| 1371 | | | } |
| 1372 | | | |
| 1373 | | | break; |
| 1374 | | | |
| 1375 | | | default: |
| 1376 | | | |
| 1377 | | | |
| 1378 | | | |
| 1379 | | | g_warning("Unknown GIOP Message");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
153 | #define g_warning(...) g_log (G_LOG_DOMAIN, \ |
154 | G_LOG_LEVEL_WARNING, \ |
155 | __VA_ARGS__) |
| |
|
| 1380 | | | |
| 1381 | | | |
| 1382 | | | break; |
| 1383 | | | |
| 1384 | | | |
| 1385 | | | } |
| 1386 | | | |
| 1387 | | | } |
| |