(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-mp4ves.c) |
| |
| 1005 | | | proto_reg_handoff_mp4ves(void) |
| 1006 | | | { |
| 1007 | | | static dissector_handle_t mp4ves_handle; |
| 1008 | | | static guint dynamic_payload_type; |
| 1009 | | | static gboolean mp4ves_prefs_initialized = FALSE; |
| 1010 | | | |
| 1011 | | | if (!mp4ves_prefs_initialized) { |
| 1012 | | | dissector_handle_t mp4ves_name_handle; |
| 1013 | | | mp4ves_capability_t *ftr; |
| 1014 | | | |
| 1015 | | | mp4ves_handle = find_dissector("mp4ves"); |
| 1016 | | | dissector_add_string("rtp_dyn_payload_type","MP4V-ES", mp4ves_handle); |
| 1017 | | | mp4ves_prefs_initialized = TRUE; |
| 1018 | | | |
| 1019 | | | mp4ves_name_handle = create_dissector_handle(dissect_mp4ves_name, proto_mp4ves); |
Ignored Return Value
The return value of create_dissector_handle() 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 create_dissector_handle() is checked 99% 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 create_dissector_handle() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 1020 | | | for (ftr=mp4ves_capability_tab; ftr->id; ftr++) { |
| 1021 | | | if (ftr->name) |
| 1022 | | | dissector_add_string("h245.gef.name", ftr->id, mp4ves_name_handle); |
| 1023 | | | if (ftr->content_pdu) |
| 1024 | | | dissector_add_string("h245.gef.content", ftr->id, new_create_dissector_handle(ftr->content_pdu, proto_mp4ves)); |
| 1025 | | | } |
| 1026 | | | }else{ |
| 1027 | | | if ( dynamic_payload_type > 95 ) |
| 1028 | | | dissector_delete("rtp.pt", dynamic_payload_type, mp4ves_handle); |
| 1029 | | | } |
| 1030 | | | dynamic_payload_type = global_dynamic_payload_type; |
| 1031 | | | |
| 1032 | | | if ( dynamic_payload_type > 95 ){ |
Event 3:
Taking true branch. dynamic_payload_type > 95 evaluates to true.
hide
|
|
| 1033 | | | dissector_add("rtp.pt", dynamic_payload_type, mp4ves_handle); |
| 1034 | | | } |
| 1035 | | | } |
| |