/rmf_traffic_testing/src/rmf_traffic/DetectConflict.cpp |
|
47: |
Function 'make_segment_num_error' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
48: |
Declare parameter 'num_segments' as const |
CERT_C-DCL00-a-3 |
|
48: |
Parameter 'num_segments' is not validated before use |
CERT_C-API00-a-3 |
|
49: |
Declare parameter 'line' as const |
CERT_C-DCL00-a-3 |
|
49: |
Parameter 'line' is not validated before use |
CERT_C-API00-a-3 |
|
50: |
Declare parameter 'function' as const |
CERT_C-DCL00-a-3 |
|
50: |
Parameter 'function' is not validated before use |
CERT_C-API00-a-3 |
|
50: |
The parameter 'function' of function 'make_segment_num_error' is passed by value |
OPT-14-3 |
|
54: |
The string literal is embedded directly in the code: [rmf_traffic::invalid_trajectory_error] Attempted to check a |
CERT_C-MSC41-a-1 |
|
55: |
The string literal is embedded directly in the code: conflict with a Trajectory that has [ |
CERT_C-MSC41-a-1 |
|
56: |
The string literal is embedded directly in the code: ] segments. This is not supported. Trajectories must have at least |
CERT_C-MSC41-a-1 |
|
57: |
The string literal is embedded directly in the code: 2 segments to check them for conflicts. |
CERT_C-MSC41-a-1 |
|
58: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
62: |
Function 'make_missing_shape_error' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
63: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
63: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
63: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
63: |
The parameter 'time' of function 'make_missing_shape_error' is passed by value |
OPT-14-3 |
|
67: |
The string literal is embedded directly in the code: [rmf_traffic::invalid_trajectory_error] Attempting to check a |
CERT_C-MSC41-a-1 |
|
68: |
The string literal is embedded directly in the code: conflict with a Trajectory that has no shape specified for the |
CERT_C-MSC41-a-1 |
|
69: |
The string literal is embedded directly in the code: profile of its waypoint at time [ |
CERT_C-MSC41-a-1 |
|
71: |
The string literal is embedded directly in the code: ns]. This is not supported. |
CERT_C-MSC41-a-1 |
|
102: |
Declare parameter 'index_offset' as const |
CERT_C-DCL00-a-3 |
|
103: |
The parameter 'current' of function 'Crawler' is passed by value |
OPT-14-3 |
|
104: |
The parameter 'end' of function 'Crawler' is passed by value |
OPT-14-3 |
|
105: |
Declare parameter 'dependencies_on_me' as const |
CERT_C-DCL00-a-3 |
|
111: |
The 'const rmf_traffic::DependsOnCheckpoint *' pointer to object type should not be implicitly converted to the integral
type 'bool'
|
CERT_C-INT36-b-3 |
|
122: |
Returned value from function 'current' is passed by value |
OPT-14-3 |
|
127: |
Returned value from function 'end' is passed by value |
OPT-14-3 |
|
137: |
Declare parameter 'other' as const |
CERT_C-DCL00-a-3 |
|
182: |
Parameter 'trajectory_a' is not validated before use |
CERT_C-API00-a-3 |
|
183: |
Parameter 'trajectory_b' is not validated before use |
CERT_C-API00-a-3 |
|
185: |
Declare local variable 't_a0' as const |
CERT_C-DCL00-a-3 |
|
186: |
Declare local variable 't_bf' as const |
CERT_C-DCL00-a-3 |
|
190: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
191: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
195: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
200: |
Declare local variable 't_b0' as const |
CERT_C-DCL00-a-3 |
|
201: |
Declare local variable 't_af' as const |
CERT_C-DCL00-a-3 |
|
205: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
206: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
210: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
221: |
Parameter 'trajectory_a' is not validated before use |
CERT_C-API00-a-3 |
|
222: |
Parameter 'trajectory_b' is not validated before use |
CERT_C-API00-a-3 |
|
232: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
233: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
239: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
240: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
271: |
Parameter 'coeffs' is not validated before use |
CERT_C-API00-a-3 |
|
272: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
283: |
Parameter 'coeffs' is not validated before use |
CERT_C-API00-a-3 |
|
287: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
287: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
287: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
287: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
288: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
288: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
288: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
288: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
291: |
Result of "[]" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
291: |
Result of "[]" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
293: |
Result of "[]" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
293: |
Result of "[]" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
295: |
Declare local variable 't' as const |
CERT_C-DCL00-a-3 |
|
295: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
296: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
296: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
296: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
302: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
302: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
302: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
302: |
Result of "[]" passed to library function "pow" without being checked |
CERT_C-MEM07-a-2 |
|
302: |
Result of "[]" passed to library function "pow" without being checked |
CERT_C-MEM04-a-2 |
|
306: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
306: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
308: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
308: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
308: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
310: |
Implicit conversion from integral to floating type in comparison expression |
CERT_C-EXP39-a-3 |
|
318: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
318: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
319: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
319: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
321: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
321: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
321: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
322: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
322: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
322: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
327: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
327: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
339: |
Parameter 'spline' is not validated before use |
CERT_C-API00-a-3 |
|
365: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
376: |
Parameter 'spline' is not validated before use |
CERT_C-API00-a-3 |
|
377: |
Parameter 'profile' is not validated before use |
CERT_C-API00-a-3 |
|
379: |
Declare local variable 'base_box' as const |
CERT_C-DCL00-a-3 |
|
440: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
460: |
Parameter 'shape_a' is not validated before use |
CERT_C-API00-a-3 |
|
461: |
Parameter 'motion_a' is not validated before use |
CERT_C-API00-a-3 |
|
462: |
Parameter 'shape_b' is not validated before use |
CERT_C-API00-a-3 |
|
463: |
Parameter 'motion_b' is not validated before use |
CERT_C-API00-a-3 |
|
464: |
Parameter 'request' is not validated before use |
CERT_C-API00-a-3 |
|
475: |
Unused function's "collide" return value |
CERT_C-ERR33-a-1 |
|
475: |
Unused function's "collide" return value |
CERT_C-POS54-a-1 |
|
475: |
Unused function's "collide" return value |
CERT_C-EXP12-a-3 |
|
484: |
Parameter 'profile' is not validated before use |
CERT_C-API00-a-3 |
|
495: |
Parameter 'scaled_time' is not validated before use |
CERT_C-API00-a-3 |
|
496: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
496: |
The parameter 'start_time' of function 'compute_time' is passed by value |
OPT-14-3 |
|
497: |
Parameter 'finish_time' is not validated before use |
CERT_C-API00-a-3 |
|
497: |
The parameter 'finish_time' of function 'compute_time' is passed by value |
OPT-14-3 |
|
500: |
Implicit conversion from 'signed long' type to 'double' type in expression |
CERT_C-FLP06-a-2 |
|
500: |
Implicit conversion from 'signed long' type to 'double' type in expression |
CERT_C-FLP36-a-3 |
|
500: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
510: |
Parameter 'profile_a' is not validated before use |
CERT_C-API00-a-3 |
|
511: |
Parameter 'trajectory_a' is not validated before use |
CERT_C-API00-a-3 |
|
512: |
Declare parameter 'dependencies_of_a_on_b' as const |
CERT_C-DCL00-a-3 |
|
512: |
Parameter 'dependencies_of_a_on_b' is not validated before use |
CERT_C-API00-a-3 |
|
513: |
Parameter 'profile_b' is not validated before use |
CERT_C-API00-a-3 |
|
514: |
Parameter 'trajectory_b' is not validated before use |
CERT_C-API00-a-3 |
|
515: |
Declare parameter 'dependencies_of_b_on_a' as const |
CERT_C-DCL00-a-3 |
|
515: |
Parameter 'dependencies_of_b_on_a' is not validated before use |
CERT_C-API00-a-3 |
|
516: |
Declare parameter 'interpolation' as const |
CERT_C-DCL00-a-3 |
|
516: |
Parameter 'interpolation' is not validated before use |
CERT_C-API00-a-3 |
|
528: |
Parameter 'profile_a' is not validated before use |
CERT_C-API00-a-3 |
|
529: |
Parameter 'spline_a' is not validated before use |
CERT_C-API00-a-3 |
|
530: |
Parameter 'profile_b' is not validated before use |
CERT_C-API00-a-3 |
|
531: |
Parameter 'spline_b' is not validated before use |
CERT_C-API00-a-3 |
|
532: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
532: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
532: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
532: |
The parameter 'time' of function 'check_overlap' is passed by value |
OPT-14-3 |
|
571: |
Declare local variable 'request' as const |
CERT_C-DCL00-a-3 |
|
574: |
Declare local variable 'convert' as const |
CERT_C-DCL00-a-3 |
|
583: |
Declare local variable 'obj_a' as const |
CERT_C-DCL00-a-3 |
|
587: |
Declare local variable 'obj_b' as const |
CERT_C-DCL00-a-3 |
|
591: |
Do not pass the nonstandard-layout type object to the 'collide' function defined in the library that may not be ABI-compatible |
CERT_CPP-EXP60-a-1 |
|
601: |
Parameter 'profile_a' is not validated before use |
CERT_C-API00-a-3 |
|
602: |
Parameter 'a_it' is not validated before use |
CERT_C-API00-a-3 |
|
603: |
Parameter 'profile_b' is not validated before use |
CERT_C-API00-a-3 |
|
604: |
Parameter 'b_it' is not validated before use |
CERT_C-API00-a-3 |
|
610: |
Declare local variable 'spline_a' as const |
CERT_C-DCL00-a-3 |
|
611: |
Declare local variable 'spline_b' as const |
CERT_C-DCL00-a-3 |
|
620: |
Parameter 'profile_a' is not validated before use |
CERT_C-API00-a-3 |
|
621: |
Parameter 'crawl_a' is not validated before use |
CERT_C-API00-a-3 |
|
621: |
The parameter 'crawl_a' of function 'detect_invasion' is passed by value |
OPT-14-3 |
|
622: |
Parameter 'profile_b' is not validated before use |
CERT_C-API00-a-3 |
|
623: |
Parameter 'crawl_b' is not validated before use |
CERT_C-API00-a-3 |
|
623: |
The parameter 'crawl_b' of function 'detect_invasion' is passed by value |
OPT-14-3 |
|
624: |
Declare parameter 'output_conflicts' as const |
CERT_C-DCL00-a-3 |
|
677: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
677: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
682: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
682: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
682: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
692: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
692: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
697: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
697: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
697: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
733: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
733: |
The parameter 'start_time' of function 'slice_trajectory' is passed by value |
OPT-14-3 |
|
734: |
Parameter 'spline' is not validated before use |
CERT_C-API00-a-3 |
|
735: |
Parameter 'it' is not validated before use |
CERT_C-API00-a-3 |
|
735: |
The parameter 'it' of function 'slice_trajectory' is passed by value |
OPT-14-3 |
|
736: |
Parameter 'end' is not validated before use |
CERT_C-API00-a-3 |
|
739: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
739: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
739: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
744: |
'for' statement in a function 'slice_trajectory' should be followed by a block |
CERT_C-EXP19-a-2 |
|
745: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
745: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
745: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
753: |
Parameter 'crawl_a' is not validated before use |
CERT_C-API00-a-3 |
|
753: |
The parameter 'crawl_a' of function 'detect_approach' is passed by value |
OPT-14-3 |
|
755: |
Parameter 'crawl_b' is not validated before use |
CERT_C-API00-a-3 |
|
755: |
The parameter 'crawl_b' of function 'detect_approach' is passed by value |
OPT-14-3 |
|
756: |
Declare parameter 'output_conflicts' as const |
CERT_C-DCL00-a-3 |
|
777: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
777: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
784: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
784: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
784: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
804: |
Declare local variable 'sliced_crawl_a' as const |
CERT_C-DCL00-a-3 |
|
811: |
Declare local variable 'sliced_crawl_b' as const |
CERT_C-DCL00-a-3 |
|
834: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
834: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
834: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
882: |
Parameter 'input_profile_a' is not validated before use |
CERT_C-API00-a-3 |
|
884: |
Declare parameter 'deps_a_on_b' as const |
CERT_C-DCL00-a-3 |
|
884: |
Parameter 'deps_a_on_b' is not validated before use |
CERT_C-API00-a-3 |
|
885: |
Parameter 'input_profile_b' is not validated before use |
CERT_C-API00-a-3 |
|
887: |
Declare parameter 'deps_b_on_a' as const |
CERT_C-DCL00-a-3 |
|
887: |
Parameter 'deps_b_on_a' is not validated before use |
CERT_C-API00-a-3 |
|
889: |
Declare parameter 'output_conflicts' as const |
CERT_C-DCL00-a-3 |
|
889: |
Parameter 'output_conflicts' is not validated before use |
CERT_C-API00-a-3 |
|
893: |
Unused function's "make_segment_num_error" return value |
CERT_C-ERR33-a-1 |
|
893: |
Unused function's "make_segment_num_error" return value |
CERT_C-POS54-a-1 |
|
893: |
Unused function's "make_segment_num_error" return value |
CERT_C-EXP12-a-3 |
|
900: |
Unused function's "make_segment_num_error" return value |
CERT_C-ERR33-a-1 |
|
900: |
Unused function's "make_segment_num_error" return value |
CERT_C-POS54-a-1 |
|
900: |
Unused function's "make_segment_num_error" return value |
CERT_C-EXP12-a-3 |
|
931: |
Declare local variable 'crawl_a' as const |
CERT_C-DCL00-a-3 |
|
932: |
Declare local variable 'crawl_b' as const |
CERT_C-DCL00-a-3 |
|
955: |
Parameter 'profile' is not validated before use |
CERT_C-API00-a-3 |
|
956: |
Parameter 'trajectory' is not validated before use |
CERT_C-API00-a-3 |
|
958: |
Declare parameter 'output_conflicts' as const |
CERT_C-DCL00-a-3 |
|
1008: |
Declare local variable 'motion_region' as const |
CERT_C-DCL00-a-3 |
|
1043: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1060: |
Unused function's "collide" return value |
CERT_C-ERR33-a-1 |
|
1060: |
Unused function's "collide" return value |
CERT_C-POS54-a-1 |
|
1060: |
Unused function's "collide" return value |
CERT_C-EXP12-a-3 |
|
1066: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1066: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1066: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/Motion.cpp |
|
31: |
The string literal is embedded directly in the code: [rmf_traffic::Motion::compute_cubic_spline] invalid waypoint range: begin
== end
|
CERT_C-MSC41-a-1 |
|
48: |
'for' statement in a function 'compute_cubic_splines' should be followed by a block |
CERT_C-EXP19-a-2 |
|
49: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
49: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
49: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
59: |
Parameter 'trajectory' is not validated before use |
CERT_C-API00-a-3 |
|
66: |
The parameter 't' of function 'SinglePointMotion' is passed by value |
OPT-14-3 |
|
67: |
The parameter 'p' of function 'SinglePointMotion' is passed by value |
OPT-14-3 |
|
68: |
The parameter 'v' of function 'SinglePointMotion' is passed by value |
OPT-14-3 |
|
89: |
The parameter number '1' of function 'compute_position' is passed by value |
OPT-14-3 |
|
95: |
The parameter number '1' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
101: |
The parameter number '1' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
|
107: |
The parameter 'spline' of function 'SplineMotion' is passed by value |
OPT-14-3 |
|
126: |
Declare parameter 't' as const |
CERT_C-DCL00-a-3 |
|
126: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
126: |
The parameter 't' of function 'compute_position' is passed by value |
OPT-14-3 |
|
132: |
Declare parameter 't' as const |
CERT_C-DCL00-a-3 |
|
132: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
132: |
The parameter 't' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
138: |
Declare parameter 't' as const |
CERT_C-DCL00-a-3 |
|
138: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
138: |
The parameter 't' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
|
144: |
The parameter 'splines' of function 'PiecewiseSplineMotion' is passed by value |
OPT-14-3 |
|
146: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
146: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
150: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
150: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
150: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
170: |
Declare parameter 't' as const |
CERT_C-DCL00-a-3 |
|
170: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
170: |
The parameter 't' of function 'compute_position' is passed by value |
OPT-14-3 |
|
176: |
Declare parameter 't' as const |
CERT_C-DCL00-a-3 |
|
176: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
176: |
The parameter 't' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
182: |
Declare parameter 't' as const |
CERT_C-DCL00-a-3 |
|
182: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
182: |
The parameter 't' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/MotionInternal.hpp |
|
33: |
The parameter 't' of function 'SinglePointMotion' is passed by value |
OPT-14-3 |
|
34: |
The parameter 'p' of function 'SinglePointMotion' is passed by value |
OPT-14-3 |
|
35: |
The parameter 'v' of function 'SinglePointMotion' is passed by value |
OPT-14-3 |
|
39: |
The parameter 't' of function 'compute_position' is passed by value |
OPT-14-3 |
|
40: |
The parameter 't' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
41: |
The parameter 't' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
|
56: |
Constructor 'SplineMotion' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
56: |
The parameter 'spline' of function 'SplineMotion' is passed by value |
OPT-14-3 |
|
60: |
The parameter 't' of function 'compute_position' is passed by value |
OPT-14-3 |
|
61: |
The parameter 't' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
62: |
The parameter 't' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
|
75: |
Constructor 'PiecewiseSplineMotion' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
75: |
The parameter 'splines' of function 'PiecewiseSplineMotion' is passed by value |
OPT-14-3 |
|
79: |
The parameter 't' of function 'compute_position' is passed by value |
OPT-14-3 |
|
80: |
The parameter 't' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
81: |
The parameter 't' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/Profile.cpp |
|
43: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
56: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
73: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
83: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
|
96: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/ProfileInternal.hpp |
|
33: |
Parameter 'profile' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/Region.cpp |
|
48: |
Parameter 'it' is not validated before use |
CERT_C-API00-a-3 |
|
48: |
The parameter 'it' of function 'make_iterator' is passed by value |
OPT-14-3 |
|
60: |
The parameter 'map' of function 'Region' is passed by value |
OPT-14-3 |
|
61: |
The parameter 'lower_bound' of function 'Region' is passed by value |
OPT-14-3 |
|
62: |
The parameter 'upper_bound' of function 'Region' is passed by value |
OPT-14-3 |
|
63: |
The parameter 'spaces' of function 'Region' is passed by value |
OPT-14-3 |
|
76: |
The parameter 'map' of function 'Region' is passed by value |
OPT-14-3 |
|
77: |
The parameter 'spaces' of function 'Region' is passed by value |
OPT-14-3 |
|
95: |
Parameter 'map' is not validated before use |
CERT_C-API00-a-3 |
|
95: |
The parameter 'map' of function 'set_map' is passed by value |
OPT-14-3 |
|
111: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
111: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
111: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
111: |
The parameter 'time' of function 'set_lower_time_bound' is passed by value |
OPT-14-3 |
|
134: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
134: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
134: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
134: |
The parameter 'time' of function 'set_upper_time_bound' is passed by value |
OPT-14-3 |
|
148: |
Declare parameter 'space' as const |
CERT_C-DCL00-a-3 |
|
148: |
Parameter 'space' is not validated before use |
CERT_C-API00-a-3 |
|
148: |
The parameter 'space' of function 'push_back' is passed by value |
OPT-14-3 |
|
160: |
Parameter 'it' is not validated before use |
CERT_C-API00-a-3 |
|
160: |
The parameter 'it' of function 'erase' is passed by value |
OPT-14-3 |
|
167: |
Parameter 'first' is not validated before use |
CERT_C-API00-a-3 |
|
167: |
Parameter 'last' is not validated before use |
CERT_C-API00-a-3 |
|
167: |
The parameter 'first' of function 'erase' is passed by value |
OPT-14-3 |
|
167: |
The parameter 'last' of function 'erase' is passed by value |
OPT-14-3 |
|
183: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
183: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
183: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
183: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
202: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
202: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
202: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
202: |
Cast from 'const rmf_traffic::Region::Implementation::Spaces' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
237: |
Use parenthesis to clarify order ('!=' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
286: |
Do not pass the nonstandard-layout type object to the '!=' function defined in the library that may not be ABI-compatible |
CERT_CPP-EXP60-a-1 |
|
286: |
Do not pass the nonstandard-layout type object to the '!=' function defined in the library that may not be ABI-compatible |
CERT_CPP-EXP60-a-1 |
|
298: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
299: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/Route.cpp |
|
25: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
27: |
Use parenthesis to clarify order ('==' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
28: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
29: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
30: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
51: |
The parameter 'routes' of function 'DependsOnPlan' is passed by value |
OPT-14-3 |
|
59: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
59: |
Parameter 'plan' is not validated before use |
CERT_C-API00-a-3 |
|
59: |
The parameter 'plan' of function 'plan' is passed by value |
OPT-14-3 |
|
72: |
Parameter 'routes' is not validated before use |
CERT_C-API00-a-3 |
|
72: |
The parameter 'routes' of function 'routes' is passed by value |
OPT-14-3 |
|
92: |
Parameter 'dependent_checkpoint' is not validated before use |
CERT_C-API00-a-3 |
|
93: |
Parameter 'dep' is not validated before use |
CERT_C-API00-a-3 |
|
93: |
The parameter 'dep' of function 'add_dependency' is passed by value |
OPT-14-3 |
|
115: |
The parameter 'map' of function 'Route' is passed by value |
OPT-14-3 |
|
116: |
The parameter 'trajectory' of function 'Route' is passed by value |
OPT-14-3 |
|
129: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
129: |
The parameter 'value' of function 'map' is passed by value |
OPT-14-3 |
|
142: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
142: |
The parameter 'value' of function 'trajectory' is passed by value |
OPT-14-3 |
|
161: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
161: |
The parameter 'value' of function 'checkpoints' is passed by value |
OPT-14-3 |
|
180: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
180: |
The parameter 'value' of function 'dependencies' is passed by value |
OPT-14-3 |
|
200: |
Parameter 'dependent_checkpoint' is not validated before use |
CERT_C-API00-a-3 |
|
201: |
Parameter 'dep' is not validated before use |
CERT_C-API00-a-3 |
|
201: |
The parameter 'dep' of function 'add_dependency' is passed by value |
OPT-14-3 |
|
213: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
221: |
Unused function's "plan" return value |
CERT_C-ERR33-a-1 |
|
221: |
Unused function's "plan" return value |
CERT_C-POS54-a-1 |
|
221: |
Unused function's "plan" return value |
CERT_C-EXP12-a-3 |
|
222: |
Unused function's "add_dependency" return value |
CERT_C-ERR33-a-1 |
|
222: |
Unused function's "add_dependency" return value |
CERT_C-POS54-a-1 |
|
222: |
Unused function's "add_dependency" return value |
CERT_C-EXP12-a-3 |
|
229: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
230: |
Parameter 'plan' is not validated before use |
CERT_C-API00-a-3 |
|
244: |
Parameter 'on_participant' is not validated before use |
CERT_C-API00-a-3 |
|
246: |
Parameter 'on_route' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/Spline.cpp |
|
41: |
Parameter 'finish_time' is not validated before use |
CERT_C-API00-a-3 |
|
41: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
49: |
Parameter 'x0' is not validated before use |
CERT_C-API00-a-3 |
|
50: |
Parameter 'x1' is not validated before use |
CERT_C-API00-a-3 |
|
51: |
Parameter 'v0' is not validated before use |
CERT_C-API00-a-3 |
|
52: |
Parameter 'v1' is not validated before use |
CERT_C-API00-a-3 |
|
58: |
Declare local variable 'si' as const |
CERT_C-DCL00-a-3 |
|
61: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
61: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
61: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
62: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
62: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
71: |
Parameter 'finish_it' is not validated before use |
CERT_C-API00-a-3 |
|
98: |
Parameter 'finish_it' is not validated before use |
CERT_C-API00-a-3 |
|
124: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
124: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
124: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
124: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
131: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
132: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
139: |
Parameter 'time_range' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
Parameter 'scaled_time' is not validated before use |
CERT_C-API00-a-3 |
|
153: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
154: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
154: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
154: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
160: |
'for' statement in a function 'compute_position' should be followed by a block |
CERT_C-EXP19-a-2 |
+
|
161: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Spline.cpp (161): pow(...)
The value of errno should be checked by this point
Spline.cpp (161): result[i] += coeffs[j] * pow(time, j); |
|
+
|
161: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Spline.cpp (161): pow(...)
The value of errno should be checked by this point
Spline.cpp (161): result[i] += coeffs[j] * pow(time, j); |
|
+
|
161: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Spline.cpp (152): Eigen::Vector3d compute_position(
Spline.cpp (156): Eigen::Vector3d result = Eigen::Vector3d::Zero();
Spline.cpp (157): for (int i = 0; i < 3; ++i) *** Loop condition evaluation: (i < 3) (true) *** Entering the loop
Spline.cpp (159): const Eigen::Vector4d coeffs = params.coeffs[i];
Spline.cpp (160): for (int j = 0; j < 4; ++j) *** Loop condition evaluation: (j < 4) (true) *** Entering the loop
The call to an errno-setting-function
Spline.cpp (161): pow(...) |
|
+
|
161: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Spline.cpp (152): Eigen::Vector3d compute_position(
Spline.cpp (156): Eigen::Vector3d result = Eigen::Vector3d::Zero();
Spline.cpp (157): for (int i = 0; i < 3; ++i) *** Loop condition evaluation: (i < 3) (true) *** Entering the loop
Spline.cpp (159): const Eigen::Vector4d coeffs = params.coeffs[i];
Spline.cpp (160): for (int j = 0; j < 4; ++j) *** Loop condition evaluation: (j < 4) (true) *** Entering the loop
The call to an errno-setting-function
Spline.cpp (161): pow(...) |
|
|
161: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
161: |
Values "time" passed to library function "pow" without being checked |
CERT_C-MEM07-a-2 |
|
161: |
Values "time" passed to library function "pow" without being checked |
CERT_C-MEM04-a-2 |
|
169: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
170: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
170: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
170: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
177: |
'for' statement in a function 'compute_velocity' should be followed by a block |
CERT_C-EXP19-a-2 |
+
|
178: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Spline.cpp (178): pow(...)
The value of errno should be checked by this point
Spline.cpp (178): result[i] += j * coeffs[j] * pow(time, j-1); |
|
+
|
178: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Spline.cpp (178): pow(...)
The value of errno should be checked by this point
Spline.cpp (178): result[i] += j * coeffs[j] * pow(time, j-1); |
|
+
|
178: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Spline.cpp (168): Eigen::Vector3d compute_velocity(
Spline.cpp (172): Eigen::Vector3d result = Eigen::Vector3d::Zero();
Spline.cpp (173): for (int i = 0; i < 3; ++i) *** Loop condition evaluation: (i < 3) (true) *** Entering the loop
Spline.cpp (175): const Eigen::Vector4d coeffs = params.coeffs[i];
Spline.cpp (177): for (int j = 1; j < 4; ++j) *** Loop condition evaluation: (j < 4) (true) *** Entering the loop
The call to an errno-setting-function
Spline.cpp (178): pow(...) |
|
+
|
178: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Spline.cpp (168): Eigen::Vector3d compute_velocity(
Spline.cpp (172): Eigen::Vector3d result = Eigen::Vector3d::Zero();
Spline.cpp (173): for (int i = 0; i < 3; ++i) *** Loop condition evaluation: (i < 3) (true) *** Entering the loop
Spline.cpp (175): const Eigen::Vector4d coeffs = params.coeffs[i];
Spline.cpp (177): for (int j = 1; j < 4; ++j) *** Loop condition evaluation: (j < 4) (true) *** Entering the loop
The call to an errno-setting-function
Spline.cpp (178): pow(...) |
|
|
178: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
178: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
178: |
Values "time" passed to library function "pow" without being checked |
CERT_C-MEM07-a-2 |
|
178: |
Values "time" passed to library function "pow" without being checked |
CERT_C-MEM04-a-2 |
|
186: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
187: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
187: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
187: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
194: |
'for' statement in a function 'compute_acceleration' should be followed by a block |
CERT_C-EXP19-a-2 |
+
|
195: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Spline.cpp (185): Eigen::Vector3d compute_acceleration(
Spline.cpp (189): Eigen::Vector3d result = Eigen::Vector3d::Zero();
Spline.cpp (190): for (int i = 0; i < 3; ++i) *** Loop condition evaluation: (i < 3) (true) *** Entering the loop
Spline.cpp (192): const Eigen::Vector4d coeffs = params.coeffs[i];
Spline.cpp (194): for (int j = 2; j < 4; ++j) *** Loop condition evaluation: (j < 4) (true) *** Entering the loop
The call to an errno-setting-function
Spline.cpp (195): pow(...) |
|
+
|
195: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Spline.cpp (185): Eigen::Vector3d compute_acceleration(
Spline.cpp (189): Eigen::Vector3d result = Eigen::Vector3d::Zero();
Spline.cpp (190): for (int i = 0; i < 3; ++i) *** Loop condition evaluation: (i < 3) (true) *** Entering the loop
Spline.cpp (192): const Eigen::Vector4d coeffs = params.coeffs[i];
Spline.cpp (194): for (int j = 2; j < 4; ++j) *** Loop condition evaluation: (j < 4) (true) *** Entering the loop
The call to an errno-setting-function
Spline.cpp (195): pow(...) |
|
|
195: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
195: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
195: |
Values "time" passed to library function "pow" without being checked |
CERT_C-MEM07-a-2 |
|
195: |
Values "time" passed to library function "pow" without being checked |
CERT_C-MEM04-a-2 |
|
204: |
The 'make_M_inv' function called during the initialization of the 'M_inv' object should be declared as exception-safe |
CERT_CPP-ERR58-a-2 |
|
204: |
The 'make_M_inv' function called during the initialization of the 'M_inv' object should be declared as exception-safe |
CERT_CPP-ERR50-f-3 |
|
222: |
Parameter 'finish_time' is not validated before use |
CERT_C-API00-a-3 |
|
222: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
222: |
The parameter 'finish_time' of function 'compute_knots' is passed by value |
OPT-14-3 |
|
222: |
The parameter 'start_time' of function 'compute_knots' is passed by value |
OPT-14-3 |
|
224: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
225: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
249: |
'for' statement in a function 'compute_knots' should be followed by a block |
CERT_C-EXP19-a-2 |
|
250: |
Implicit conversion from 'unsigned long' type to 'signed long' type in function's argument |
CERT_C-INT02-a-2 |
|
257: |
Function 'to_fcl' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
258: |
Parameter 'finish_time' is not validated before use |
CERT_C-API00-a-3 |
|
258: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
258: |
The parameter 'finish_time' of function 'to_fcl' is passed by value |
OPT-14-3 |
|
258: |
The parameter 'start_time' of function 'to_fcl' is passed by value |
OPT-14-3 |
|
295: |
Parameter 'at_time' is not validated before use |
CERT_C-API00-a-3 |
|
295: |
The parameter 'at_time' of function 'compute_position' is passed by value |
OPT-14-3 |
|
302: |
Parameter 'at_time' is not validated before use |
CERT_C-API00-a-3 |
|
302: |
The parameter 'at_time' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
310: |
Parameter 'at_time' is not validated before use |
CERT_C-API00-a-3 |
|
310: |
The parameter 'at_time' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
+
|
313: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Spline.cpp (313): pow(...)
The value of errno should be checked by this point
Spline.cpp (313): return pow(delta_t_inv, 2) * rmf_traffic::compute_acceleration( |
|
+
|
313: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Spline.cpp (313): pow(...)
The value of errno should be checked by this point
Spline.cpp (313): return pow(delta_t_inv, 2) * rmf_traffic::compute_acceleration( |
|
+
|
313: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Spline.cpp (310): Eigen::Vector3d Spline::compute_acceleration(const Time at_time) const
Spline.cpp (312): const double delta_t_inv = 1.0/params.delta_t;
The call to an errno-setting-function
Spline.cpp (313): pow(...) |
|
+
|
313: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Spline.cpp (310): Eigen::Vector3d Spline::compute_acceleration(const Time at_time) const
Spline.cpp (312): const double delta_t_inv = 1.0/params.delta_t;
The call to an errno-setting-function
Spline.cpp (313): pow(...) |
|
|
313: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
324: |
Function 'normalize_coefficients' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
325: |
Parameter 't0' is not validated before use |
CERT_C-API00-a-3 |
|
325: |
The parameter 't0' of function 'normalize_coefficients' is passed by value |
OPT-14-3 |
|
326: |
Parameter 't1' is not validated before use |
CERT_C-API00-a-3 |
|
326: |
The parameter 't1' of function 'normalize_coefficients' is passed by value |
OPT-14-3 |
|
327: |
Parameter 'delta_t' is not validated before use |
CERT_C-API00-a-3 |
|
328: |
Parameter 'spline' is not validated before use |
CERT_C-API00-a-3 |
|
340: |
Parameter 'spline_a' is not validated before use |
CERT_C-API00-a-3 |
|
341: |
Parameter 'spline_b' is not validated before use |
CERT_C-API00-a-3 |
|
363: |
Parameter 'scaled_time' is not validated before use |
CERT_C-API00-a-3 |
|
364: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
377: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
377: |
Parameter 'scaled_time' is not validated before use |
CERT_C-API00-a-3 |
|
384: |
Parameter 'params' is not validated before use |
CERT_C-API00-a-3 |
|
385: |
Parameter 't' is not validated before use |
CERT_C-API00-a-3 |
|
396: |
Use parenthesis to clarify order ('+' is the first operand of '<') |
CERT_C-EXP00-a-3 |
|
404: |
Parameter 'coeffs' is not validated before use |
CERT_C-API00-a-3 |
|
404: |
The parameter 'coeffs' of function 'compute_roots_in_unit_domain' is passed by value |
OPT-14-3 |
|
420: |
Use parenthesis to clarify order ('<=' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
420: |
Use parenthesis to clarify order ('<=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
428: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
+
|
435: |
Errno may not be set to 0 before the call to the errno-setting-function "sqrt" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Spline.cpp (404): std::vector<double> compute_roots_in_unit_domain(const Eigen::Vector3d coeffs)
Spline.cpp (406): const double tol = 1e-5;
Spline.cpp (408): const double a = coeffs[2];
Spline.cpp (409): const double b = coeffs[1];
Spline.cpp (410): const double c = coeffs[0];
Spline.cpp (412): if (std::abs(a) < tol) *** Condition evaluation: (abs(...) < 0.00001000000000000000082) (assuming false)
Spline.cpp (428): const double determinate = (b*b - 4*a*c);
Spline.cpp (429): if (determinate < 0.0) *** Condition evaluation: (determinate < 0.0) (assuming false)
Spline.cpp (434): std::vector<double> output;
The call to an errno-setting-function
Spline.cpp (435): sqrt(...) |
|
+
|
435: |
Errno may not be set to 0 before the call to the errno-setting-function "sqrt" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Spline.cpp (404): std::vector<double> compute_roots_in_unit_domain(const Eigen::Vector3d coeffs)
Spline.cpp (406): const double tol = 1e-5;
Spline.cpp (408): const double a = coeffs[2];
Spline.cpp (409): const double b = coeffs[1];
Spline.cpp (410): const double c = coeffs[0];
Spline.cpp (412): if (std::abs(a) < tol) *** Condition evaluation: (abs(...) < 0.00001000000000000000082) (assuming false)
Spline.cpp (428): const double determinate = (b*b - 4*a*c);
Spline.cpp (429): if (determinate < 0.0) *** Condition evaluation: (determinate < 0.0) (assuming false)
Spline.cpp (434): std::vector<double> output;
The call to an errno-setting-function
Spline.cpp (435): sqrt(...) |
|
|
435: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
436: |
Use parenthesis to clarify order ('<=' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
436: |
Use parenthesis to clarify order ('<=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
439: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
440: |
Use parenthesis to clarify order ('<=' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
440: |
Use parenthesis to clarify order ('<=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
440: |
Use parenthesis to clarify order ('>' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
447: |
Parameter 'coeffs' is not validated before use |
CERT_C-API00-a-3 |
|
461: |
Use parenthesis to clarify order ('<' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
469: |
Function 'is_in_eighth' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
470: |
Parameter 'theta' is not validated before use |
CERT_C-API00-a-3 |
|
471: |
Parameter 'eighth_0' is not validated before use |
CERT_C-API00-a-3 |
|
472: |
Parameter 'eighth_1' is not validated before use |
CERT_C-API00-a-3 |
|
476: |
Values "eighth_0, theta" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
476: |
Values "eighth_0, theta" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
477: |
Values "eighth_1, theta" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
477: |
Values "eighth_1, theta" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
481: |
Function 'contains' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
493: |
Function 'insert_if_missing' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
554: |
Result of "y" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
554: |
Result of "y" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
562: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
562: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
573: |
Result of "x" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
573: |
Result of "x" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
581: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
581: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
582: |
Use parenthesis to clarify order ('/' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
610: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
610: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
626: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
626: |
Result of "x" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
/rmf_traffic_testing/src/rmf_traffic/Spline.hpp |
|
51: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
52: |
Constructor 'Spline' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
55: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
56: |
Constructor 'Spline' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
61: |
The parameter 'finish_time' of function 'compute_knots' is passed by value |
OPT-14-3 |
|
61: |
The parameter 'start_time' of function 'compute_knots' is passed by value |
OPT-14-3 |
|
63: |
Function 'to_fcl' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
63: |
The parameter 'finish_time' of function 'to_fcl' is passed by value |
OPT-14-3 |
|
63: |
The parameter 'start_time' of function 'to_fcl' is passed by value |
OPT-14-3 |
|
76: |
The parameter 'at_time' of function 'compute_position' is passed by value |
OPT-14-3 |
|
79: |
The parameter 'at_time' of function 'compute_velocity' is passed by value |
OPT-14-3 |
|
82: |
The parameter 'at_time' of function 'compute_acceleration' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/StaticMotion.cpp |
|
26: |
Parameter 'tf' is not validated before use |
CERT_C-API00-a-3 |
|
62: |
Implicit conversion from integral to floating type in function's return |
CERT_C-EXP39-a-3 |
|
75: |
The string literal is embedded directly in the code: ----- OH NO, WE'RE USING StaticMotion::computeMotionBound(TriangleMotionBoundVisitor)!!
-----
|
CERT_C-MSC41-a-1 |
|
79: |
The string literal is embedded directly in the code: unimplemented function: StaticMotion::computeMotionBound(TriangleMotionBoundVisitor) |
CERT_C-MSC41-a-1 |
|
87: |
Parameter 'tf' is not validated before use |
CERT_C-API00-a-3 |
|
103: |
The string literal is embedded directly in the code: ----- OH NO, WE'RE USING StaticMotion::getTaylorModel()!! ----- |
CERT_C-MSC41-a-1 |
|
107: |
The string literal is embedded directly in the code: unimplemented function: StaticMotion::getTaylorModel() |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/StaticMotion.hpp |
|
43: |
Constructor 'StaticMotion' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
62: |
Names shall be given for all the parameters in function 'computeMotionBound' |
CERT_C-EXP37-a-3 |
|
65: |
Names shall be given for all the parameters in function 'computeMotionBound' |
CERT_C-EXP37-a-3 |
|
70: |
Names shall be given for all the parameters in function 'getTaylorModel' |
CERT_C-EXP37-a-3 |
/rmf_traffic_testing/src/rmf_traffic/Time.cpp |
|
24: |
Parameter 'delta_t' is not validated before use |
CERT_C-API00-a-3 |
|
24: |
The parameter 'delta_t' of function 'to_seconds' is passed by value |
OPT-14-3 |
|
31: |
Declare parameter 'delta_t' as const |
CERT_C-DCL00-a-3 |
|
31: |
Parameter 'delta_t' is not validated before use |
CERT_C-API00-a-3 |
|
38: |
Parameter 'delta_seconds' is not validated before use |
CERT_C-API00-a-3 |
|
38: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
38: |
The parameter 'start_time' of function 'apply_offset' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/Trajectory.cpp |
|
32: |
No constructor. All member variables: 'parent' should be initialized in constructor |
INIT-06-1 |
|
41: |
The parameter 'it' of function 'make_iterator' is passed by value |
OPT-14-3 |
|
73: |
Parameter 'iterator' is not validated before use |
CERT_C-API00-a-3 |
|
81: |
Parameter 'iterator' is not validated before use |
CERT_C-API00-a-3 |
|
89: |
No constructor. All member variables: 'parent' should be initialized in constructor |
INIT-06-1 |
|
125: |
The parameter 'iterator' of function 'make_iterator' is passed by value |
OPT-14-3 |
|
135: |
Parameter 'iterator' is not validated before use |
CERT_C-API00-a-3 |
|
135: |
The parameter 'iterator' of function 'make_segment' is passed by value |
OPT-14-3 |
|
149: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
154: |
Check for assignment to self in operator= in class 'Implementation' |
CERT_CPP-OOP54-a-3 |
|
154: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
172: |
Parameter 'data' is not validated before use |
CERT_C-API00-a-3 |
|
172: |
The parameter 'data' of function 'insert' is passed by value |
OPT-14-3 |
|
180: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
180: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
190: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
190: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
193: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
193: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
197: |
'for' statement in a function 'insert' should be followed by a block |
CERT_C-EXP19-a-2 |
|
197: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
203: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
203: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
203: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
203: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
203: |
The parameter 'time' of function 'find' is passed by value |
OPT-14-3 |
|
217: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
217: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
217: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
217: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
217: |
The parameter 'time' of function 'lower_bound' is passed by value |
OPT-14-3 |
|
226: |
Declare parameter 'waypoint' as const |
CERT_C-DCL00-a-3 |
|
226: |
Parameter 'waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
226: |
The parameter 'waypoint' of function 'erase' is passed by value |
OPT-14-3 |
|
230: |
'for' statement in a function 'erase' should be followed by a block |
CERT_C-EXP19-a-2 |
|
230: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
231: |
Expression of type 'long' is assigned to expression of type 'unsigned long' |
CERT_C-MEM02-a-3 |
|
236: |
Declare parameter 'first' as const |
CERT_C-DCL00-a-3 |
|
236: |
Parameter 'first' is not validated before use |
CERT_C-API00-a-3 |
|
236: |
The parameter 'first' of function 'erase' is passed by value |
OPT-14-3 |
|
236: |
The parameter 'last' of function 'erase' is passed by value |
OPT-14-3 |
|
248: |
'for' statement in a function 'erase' should be followed by a block |
CERT_C-EXP19-a-2 |
|
248: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
249: |
Expression of type 'long' is assigned to expression of type 'unsigned long' |
CERT_C-MEM02-a-3 |
|
274: |
Parameter 'new_position' is not validated before use |
CERT_C-API00-a-3 |
|
274: |
The parameter 'new_position' of function 'position' is passed by value |
OPT-14-3 |
|
288: |
Parameter 'new_velocity' is not validated before use |
CERT_C-API00-a-3 |
|
288: |
The parameter 'new_velocity' of function 'velocity' is passed by value |
OPT-14-3 |
|
307: |
The parameter 'new_time' of function 'change_time' is passed by value |
OPT-14-3 |
|
324: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
324: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
344: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
344: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
352: |
The string literal is embedded directly in the code: [Trajectory::Waypoint::change_time] Attempted to set time to |
CERT_C-MSC41-a-1 |
|
354: |
The string literal is embedded directly in the code: ns, but a waypoint already exists at that timestamp. |
CERT_C-MSC41-a-1 |
|
378: |
'for' statement in a function 'change_time' should be followed by a block |
CERT_C-EXP19-a-2 |
|
386: |
The parameter 'delta_t' of function 'adjust_times' is passed by value |
OPT-14-3 |
|
392: |
Use parenthesis to clarify order ('<' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
407: |
The string literal is embedded directly in the code: [Trajectory::Waypoint::adjust_times] |
CERT_C-MSC41-a-1 |
|
408: |
The string literal is embedded directly in the code: The given negative change in time: |
CERT_C-MSC41-a-1 |
|
409: |
The string literal is embedded directly in the code: ns caused the Waypoint's new |
CERT_C-MSC41-a-1 |
|
410: |
The string literal is embedded directly in the code: time window [ |
CERT_C-MSC41-a-1 |
|
411: |
The string literal is embedded directly in the code: ] to overlap with its precedessor's [ |
CERT_C-MSC41-a-1 |
|
412: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
419: |
'for' statement in a function 'adjust_times' should be followed by a block |
CERT_C-EXP19-a-2 |
|
427: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
427: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
429: |
'for' statement in a function 'adjust_times' should be followed by a block |
CERT_C-EXP19-a-2 |
|
455: |
Check for assignment to self in operator= in class 'Trajectory' |
CERT_CPP-OOP54-a-3 |
|
455: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
463: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
463: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
463: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
463: |
The parameter 'time' of function 'insert' is passed by value |
OPT-14-3 |
|
464: |
Parameter 'position' is not validated before use |
CERT_C-API00-a-3 |
|
464: |
The parameter 'position' of function 'insert' is passed by value |
OPT-14-3 |
|
465: |
Parameter 'velocity' is not validated before use |
CERT_C-API00-a-3 |
|
465: |
The parameter 'velocity' of function 'insert' is passed by value |
OPT-14-3 |
|
475: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
481: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
481: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
481: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
481: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
481: |
The parameter 'time' of function 'find' is passed by value |
OPT-14-3 |
|
487: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
494: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
500: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
506: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
512: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
512: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
512: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
512: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
512: |
The parameter 'time' of function 'find' is passed by value |
OPT-14-3 |
|
514: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
514: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
514: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
514: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
518: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
518: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
518: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
518: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
518: |
The parameter 'time' of function 'lower_bound' is passed by value |
OPT-14-3 |
|
524: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
524: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
524: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
524: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
524: |
The parameter 'time' of function 'lower_bound' is passed by value |
OPT-14-3 |
|
526: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
526: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
526: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
526: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
530: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
530: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
530: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
530: |
The parameter 'time' of function 'index_after' is passed by value |
OPT-14-3 |
|
543: |
Declare parameter 'waypoint' as const |
CERT_C-DCL00-a-3 |
|
543: |
Parameter 'waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
543: |
The parameter 'waypoint' of function 'erase' is passed by value |
OPT-14-3 |
|
549: |
Declare parameter 'first' as const |
CERT_C-DCL00-a-3 |
|
549: |
Declare parameter 'last' as const |
CERT_C-DCL00-a-3 |
|
549: |
Parameter 'first' is not validated before use |
CERT_C-API00-a-3 |
|
549: |
Parameter 'last' is not validated before use |
CERT_C-API00-a-3 |
|
549: |
The parameter 'first' of function 'erase' is passed by value |
OPT-14-3 |
|
549: |
The parameter 'last' of function 'erase' is passed by value |
OPT-14-3 |
|
563: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
563: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
563: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
563: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
569: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
569: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
569: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
569: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
581: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
581: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
581: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
581: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
587: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
587: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
587: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
587: |
Cast from 'const rmf_traffic::Trajectory::Implementation, const_reference, type' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
618: |
Use parenthesis to clarify order ('==' is the first operand of '?:') |
CERT_C-EXP00-a-3 |
|
625: |
Use parenthesis to clarify order ('==' is the first operand of '?:') |
CERT_C-EXP00-a-3 |
|
632: |
Use parenthesis to clarify order ('<' is the first operand of '?:') |
CERT_C-EXP00-a-3 |
|
694: |
Do not define function-like macro: DEFINE_BASIC_ITERATOR_OP |
CERT_C-PRE00-a-3 |
|
788: |
Parameter 'trajectory' is not validated before use |
CERT_C-API00-a-3 |
|
790: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
801: |
The LHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
801: |
The RHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
804: |
The LHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
804: |
The RHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
805: |
The LHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
805: |
The RHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
812: |
The string literal is embedded directly in the code: Trajectory time inconsistency detected: |
CERT_C-MSC41-a-1 |
|
813: |
The string literal is embedded directly in the code: ( ordering | segments | difference ) |
CERT_C-MSC41-a-1 |
|
815: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
818: |
The string literal is embedded directly in the code: -- [ |
CERT_C-MSC41-a-1 |
|
818: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
819: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
819: |
The string literal is embedded directly in the code: | |
CERT_C-MSC41-a-1 |
|
820: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
821: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
821: |
The string literal is embedded directly in the code: | Difference: |
CERT_C-MSC41-a-1 |
|
826: |
The string literal is embedded directly in the code: -- more elements in segments |
CERT_C-MSC41-a-1 |
|
827: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
829: |
The string literal is embedded directly in the code: -- [ |
CERT_C-MSC41-a-1 |
|
829: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
830: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
836: |
The string literal is embedded directly in the code: -- more elements in ordering: |
CERT_C-MSC41-a-1 |
|
837: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
839: |
The string literal is embedded directly in the code: -- [ |
CERT_C-MSC41-a-1 |
|
839: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
840: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
/rmf_traffic_testing/src/rmf_traffic/TrajectoryInternal.hpp |
|
131: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
171: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
172: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
177: |
Unused function's "rotate" return value |
CERT_C-ERR33-a-1 |
|
177: |
Unused function's "rotate" return value |
CERT_C-POS54-a-1 |
|
177: |
Unused function's "rotate" return value |
CERT_C-EXP12-a-3 |
|
183: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
184: |
Unused function's "rotate" return value |
CERT_C-ERR33-a-1 |
|
184: |
Unused function's "rotate" return value |
CERT_C-POS54-a-1 |
|
184: |
Unused function's "rotate" return value |
CERT_C-EXP12-a-3 |
+
|
233: |
The "this->_storage" variable may be accessed out of bounds at index "index", which may be greater or equal to the container
size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
TrajectoryInternal.hpp (231): Element& operator[](const std::size_t index)
Out of bounds access point
TrajectoryInternal.hpp (233): _storage[index] |
|
+
|
233: |
The "this->_storage" variable may be accessed out of bounds at index "index", which may be greater or equal to the container
size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
TrajectoryInternal.hpp (231): Element& operator[](const std::size_t index)
Out of bounds access point
TrajectoryInternal.hpp (233): _storage[index] |
|
+
|
238: |
The "this->_storage" variable may be accessed out of bounds at index "index", which may be greater or equal to the container
size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
TrajectoryInternal.hpp (236): const Element& operator[](const std::size_t index) const
Out of bounds access point
TrajectoryInternal.hpp (238): _storage[index] |
|
+
|
238: |
The "this->_storage" variable may be accessed out of bounds at index "index", which may be greater or equal to the container
size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
TrajectoryInternal.hpp (236): const Element& operator[](const std::size_t index) const
Out of bounds access point
TrajectoryInternal.hpp (238): _storage[index] |
|
|
286: |
Constructor 'WaypointElement' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
286: |
The parameter 'input_data' of function 'WaypointElement' is passed by value |
OPT-14-3 |
|
298: |
Check for assignment to self in operator= in class 'WaypointElement' |
CERT_CPP-OOP54-a-3 |
|
298: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
304: |
Names shall be given for all the parameters in function 'WaypointElement' |
CERT_C-EXP37-a-3 |
|
305: |
Names shall be given for all the parameters in function '=' |
CERT_C-EXP37-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/CentralizedNegotiation.cpp |
|
28: |
No constructor. All member variables: 'id' should be initialized in constructor |
INIT-06-1 |
|
43: |
The parameter 'start' of function 'Agent' is passed by value |
OPT-14-3 |
|
44: |
The parameter 'goal' of function 'Agent' is passed by value |
OPT-14-3 |
|
46: |
The parameter 'options' of function 'Agent' is passed by value |
OPT-14-3 |
|
60: |
The parameter 'starts' of function 'Agent' is passed by value |
OPT-14-3 |
|
61: |
The parameter 'goal' of function 'Agent' is passed by value |
OPT-14-3 |
|
63: |
The parameter 'options' of function 'Agent' is passed by value |
OPT-14-3 |
|
81: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
81: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
94: |
Parameter 'values' is not validated before use |
CERT_C-API00-a-3 |
|
94: |
The parameter 'values' of function 'starts' is passed by value |
OPT-14-3 |
|
108: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
108: |
The parameter 'value' of function 'goal' is passed by value |
OPT-14-3 |
|
123: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
138: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
138: |
The parameter 'value' of function 'options' is passed by value |
OPT-14-3 |
|
160: |
Parameter 'result' is not validated before use |
CERT_C-API00-a-3 |
|
214: |
Parameter 'v' is not validated before use |
CERT_C-API00-a-3 |
|
221: |
Declare parameter 'on' as const |
CERT_C-DCL00-a-3 |
|
221: |
Parameter 'on' is not validated before use |
CERT_C-API00-a-3 |
|
228: |
Declare parameter 'on' as const |
CERT_C-DCL00-a-3 |
|
228: |
Parameter 'on' is not validated before use |
CERT_C-API00-a-3 |
|
235: |
Declare parameter 'on' as const |
CERT_C-DCL00-a-3 |
|
235: |
Parameter 'on' is not validated before use |
CERT_C-API00-a-3 |
|
248: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
256: |
The string literal is embedded directly in the code: -> |
CERT_C-MSC41-a-1 |
|
259: |
The string literal is embedded directly in the code: t: |
CERT_C-MSC41-a-1 |
|
260: |
The string literal is embedded directly in the code: , ( |
CERT_C-MSC41-a-1 |
|
261: |
The string literal is embedded directly in the code: ), yaw: |
CERT_C-MSC41-a-1 |
|
288: |
Unused function's "approval_callback" return value |
CERT_C-ERR33-a-1 |
|
288: |
Unused function's "approval_callback" return value |
CERT_C-POS54-a-1 |
|
288: |
Unused function's "approval_callback" return value |
CERT_C-EXP12-a-3 |
|
307: |
The string literal is embedded directly in the code: [CentralizedNegotiation::solve] Duplicate participant [ |
CERT_C-MSC41-a-1 |
|
308: |
The string literal is embedded directly in the code: ] in list of agents |
CERT_C-MSC41-a-1 |
|
320: |
The string literal is embedded directly in the code: [CentralizedNegotiation::solve] Unable to begin negotiation because one
or more participants are not registered in the schedule.
|
CERT_C-MSC41-a-1 |
|
331: |
Declare local variable 'finished' as const |
CERT_C-DCL00-a-3 |
|
339: |
Declare local variable 'skip' as const |
CERT_C-DCL00-a-3 |
|
395: |
The string literal is embedded directly in the code: Skipping |
CERT_C-MSC41-a-1 |
|
410: |
The string literal is embedded directly in the code: Submitted plan: |
CERT_C-MSC41-a-1 |
|
426: |
The string literal is embedded directly in the code: Rejected parent |
CERT_C-MSC41-a-1 |
|
434: |
The string literal is embedded directly in the code: Forfeited |
CERT_C-MSC41-a-1 |
|
436: |
'for' statement in a function 'solve' should be followed by a block |
CERT_C-EXP19-a-2 |
|
437: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
437: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
437: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
441: |
'for' statement in a function 'solve' should be followed by a block |
CERT_C-EXP19-a-2 |
|
442: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
442: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
442: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/Graph.cpp |
|
29: |
No constructor. All member variables: 'index' should be initialized in constructor |
INIT-06-1 |
|
59: |
Parameter 'wp' is not validated before use |
CERT_C-API00-a-3 |
|
72: |
Parameter 'map' is not validated before use |
CERT_C-API00-a-3 |
|
72: |
The parameter 'map' of function 'set_map_name' is passed by value |
OPT-14-3 |
|
85: |
Parameter 'location' is not validated before use |
CERT_C-API00-a-3 |
|
85: |
The parameter 'location' of function 'set_location' is passed by value |
OPT-14-3 |
|
98: |
Declare parameter '_is_holding_point' as const |
CERT_C-DCL00-a-3 |
|
98: |
Parameter '_is_holding_point' is not validated before use |
CERT_C-API00-a-3 |
|
98: |
Reserved name '_is_holding_point' used |
CERT_CPP-DCL51-d-3 |
|
111: |
Declare parameter '_is_passthrough' as const |
CERT_C-DCL00-a-3 |
|
111: |
Parameter '_is_passthrough' is not validated before use |
CERT_C-API00-a-3 |
|
111: |
Reserved name '_is_passthrough' used |
CERT_CPP-DCL51-d-3 |
|
124: |
Declare parameter '_is_parking_spot' as const |
CERT_C-DCL00-a-3 |
|
124: |
Parameter '_is_parking_spot' is not validated before use |
CERT_C-API00-a-3 |
|
124: |
Reserved name '_is_parking_spot' used |
CERT_CPP-DCL51-d-3 |
|
137: |
Declare parameter '_is_charger' as const |
CERT_C-DCL00-a-3 |
|
137: |
Parameter '_is_charger' is not validated before use |
CERT_C-API00-a-3 |
|
137: |
Reserved name '_is_charger' used |
CERT_CPP-DCL51-d-3 |
|
160: |
Parameter 'name_format' is not validated before use |
CERT_C-API00-a-3 |
|
161: |
Parameter 'index_format' is not validated before use |
CERT_C-API00-a-3 |
|
165: |
The string literal is embedded directly in the code: %s |
CERT_C-MSC41-a-1 |
|
174: |
The string literal is embedded directly in the code: %d |
CERT_C-MSC41-a-1 |
|
195: |
Constructor 'AcceptableOrientationConstraint' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
195: |
The parameter 'acceptable' of function 'AcceptableOrientationConstraint' is passed by value |
OPT-14-3 |
|
203: |
Parameter 'position' is not validated before use |
CERT_C-API00-a-3 |
|
206: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
206: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
217: |
Result of "wrap_to_pi" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
217: |
Result of "wrap_to_pi" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
240: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
246: |
Parameter 'forward' is not validated before use |
CERT_C-API00-a-3 |
+
|
248: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Graph.cpp (248): atan2(...)
The value of errno should be checked by this point
Graph.cpp (248): return Eigen::Rotation2Dd(std::atan2(forward[1], forward[0])); |
|
+
|
248: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Graph.cpp (248): atan2(...)
The value of errno should be checked by this point
Graph.cpp (248): return Eigen::Rotation2Dd(std::atan2(forward[1], forward[0])); |
|
+
|
248: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Graph.cpp (245): static Eigen::Rotation2Dd compute_forward_offset(
The call to an errno-setting-function
Graph.cpp (248): atan2(...) |
|
+
|
248: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Graph.cpp (245): static Eigen::Rotation2Dd compute_forward_offset(
The call to an errno-setting-function
Graph.cpp (248): atan2(...) |
|
|
248: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
248: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
254: |
Declare parameter '_direction' as const |
CERT_C-DCL00-a-3 |
|
254: |
Reserved name '_direction' used |
CERT_CPP-DCL51-d-3 |
|
255: |
Reserved name '_forward_vector' used |
CERT_CPP-DCL51-d-3 |
|
268: |
Parameter 'course_vector' is not validated before use |
CERT_C-API00-a-3 |
+
|
271: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Graph.cpp (271): atan2(...)
The value of errno should be checked by this point
Graph.cpp (271): std::atan2(course_vector[1], course_vector[0])); |
|
+
|
271: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Graph.cpp (271): atan2(...)
The value of errno should be checked by this point
Graph.cpp (271): std::atan2(course_vector[1], course_vector[0])); |
|
+
|
271: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Graph.cpp (267): Eigen::Rotation2Dd compute_R_final(
Graph.cpp (270): const Eigen::Rotation2Dd R_c(
The call to an errno-setting-function
Graph.cpp (271): atan2(...) |
|
+
|
271: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Graph.cpp (267): Eigen::Rotation2Dd compute_R_final(
Graph.cpp (270): const Eigen::Rotation2Dd R_c(
The call to an errno-setting-function
Graph.cpp (271): atan2(...) |
|
|
271: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
271: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
280: |
Parameter 'position' is not validated before use |
CERT_C-API00-a-3 |
|
281: |
Parameter 'course_vector' is not validated before use |
CERT_C-API00-a-3 |
|
294: |
The 'Rotation2D' constructor called during the creation of the 'R_pi' object should be declared as exception-safe |
CERT_CPP-ERR58-a-2 |
|
294: |
The 'Rotation2D' constructor called during the creation of the 'R_pi' object should be declared as exception-safe |
CERT_CPP-ERR50-f-3 |
|
300: |
Parameter 'acceptable_orientations' is not validated before use |
CERT_C-API00-a-3 |
|
300: |
The parameter 'acceptable_orientations' of function 'make' is passed by value |
OPT-14-3 |
|
309: |
Parameter 'direction' is not validated before use |
CERT_C-API00-a-3 |
|
310: |
Parameter 'forward' is not validated before use |
CERT_C-API00-a-3 |
|
327: |
The parameter 'name' of function 'Door' is passed by value |
OPT-14-3 |
|
328: |
The parameter 'duration' of function 'Door' is passed by value |
OPT-14-3 |
|
345: |
Parameter 'name' is not validated before use |
CERT_C-API00-a-3 |
|
345: |
The parameter 'name' of function 'name' is passed by value |
OPT-14-3 |
|
358: |
Declare parameter 'duration_' as const |
CERT_C-DCL00-a-3 |
|
358: |
Parameter 'duration_' is not validated before use |
CERT_C-API00-a-3 |
|
358: |
The parameter 'duration_' of function 'duration' is passed by value |
OPT-14-3 |
|
377: |
The parameter 'lift_name' of function 'LiftSession' is passed by value |
OPT-14-3 |
|
378: |
The parameter 'floor_name' of function 'LiftSession' is passed by value |
OPT-14-3 |
|
379: |
The parameter 'duration' of function 'LiftSession' is passed by value |
OPT-14-3 |
|
397: |
Parameter 'name' is not validated before use |
CERT_C-API00-a-3 |
|
397: |
The parameter 'name' of function 'lift_name' is passed by value |
OPT-14-3 |
|
410: |
Parameter 'name' is not validated before use |
CERT_C-API00-a-3 |
|
410: |
The parameter 'name' of function 'floor_name' is passed by value |
OPT-14-3 |
|
423: |
Declare parameter 'duration_' as const |
CERT_C-DCL00-a-3 |
|
423: |
Parameter 'duration_' is not validated before use |
CERT_C-API00-a-3 |
|
423: |
The parameter 'duration_' of function 'duration' is passed by value |
OPT-14-3 |
|
441: |
The parameter 'dock_name' of function 'Dock' is passed by value |
OPT-14-3 |
|
442: |
The parameter 'duration' of function 'Dock' is passed by value |
OPT-14-3 |
|
459: |
Declare parameter 'name' as const |
CERT_C-DCL00-a-3 |
|
459: |
Parameter 'name' is not validated before use |
CERT_C-API00-a-3 |
|
459: |
The parameter 'name' of function 'dock_name' is passed by value |
OPT-14-3 |
|
472: |
Declare parameter 'd' as const |
CERT_C-DCL00-a-3 |
|
472: |
Parameter 'd' is not validated before use |
CERT_C-API00-a-3 |
|
472: |
The parameter 'd' of function 'duration' is passed by value |
OPT-14-3 |
|
488: |
The parameter 'value' of function 'Wait' is passed by value |
OPT-14-3 |
|
501: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
501: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
501: |
The parameter 'value' of function 'duration' is passed by value |
OPT-14-3 |
|
522: |
Constructor 'TemplateEvent' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
539: |
Reserved name '_event' used |
CERT_CPP-DCL51-d-3 |
|
557: |
Parameter 'open' is not validated before use |
CERT_C-API00-a-3 |
|
557: |
The parameter 'open' of function 'make' is passed by value |
OPT-14-3 |
|
563: |
Parameter 'close' is not validated before use |
CERT_C-API00-a-3 |
|
563: |
The parameter 'close' of function 'make' is passed by value |
OPT-14-3 |
|
569: |
Parameter 'open' is not validated before use |
CERT_C-API00-a-3 |
|
569: |
The parameter 'open' of function 'make' is passed by value |
OPT-14-3 |
|
575: |
Parameter 'close' is not validated before use |
CERT_C-API00-a-3 |
|
575: |
The parameter 'close' of function 'make' is passed by value |
OPT-14-3 |
|
581: |
Parameter 'move' is not validated before use |
CERT_C-API00-a-3 |
|
581: |
The parameter 'move' of function 'make' is passed by value |
OPT-14-3 |
|
587: |
Parameter 'open' is not validated before use |
CERT_C-API00-a-3 |
|
587: |
The parameter 'open' of function 'make' is passed by value |
OPT-14-3 |
|
593: |
Parameter 'dock' is not validated before use |
CERT_C-API00-a-3 |
|
593: |
The parameter 'dock' of function 'make' is passed by value |
OPT-14-3 |
|
599: |
Parameter 'wait' is not validated before use |
CERT_C-API00-a-3 |
|
599: |
The parameter 'wait' of function 'make' is passed by value |
OPT-14-3 |
|
605: |
No constructor. All member variables: 'waypoint' should be initialized in constructor |
INIT-06-1 |
|
620: |
The parameter 'event' of function 'Node' is passed by value |
OPT-14-3 |
|
621: |
The parameter 'orientation' of function 'Node' is passed by value |
OPT-14-3 |
|
635: |
The parameter 'orientation' of function 'Node' is passed by value |
OPT-14-3 |
|
660: |
Parameter 'new_event' is not validated before use |
CERT_C-API00-a-3 |
|
660: |
The parameter 'new_event' of function 'event' is passed by value |
OPT-14-3 |
|
696: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
696: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
696: |
The parameter 'value' of function 'speed_limit' is passed by value |
OPT-14-3 |
|
704: |
No constructor. All member variables: 'index' should be initialized in constructor |
INIT-06-1 |
|
717: |
Function 'make' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
784: |
Parameter 'map_name' is not validated before use |
CERT_C-API00-a-3 |
|
784: |
The parameter 'map_name' of function 'add_waypoint' is passed by value |
OPT-14-3 |
|
785: |
Parameter 'location' is not validated before use |
CERT_C-API00-a-3 |
|
785: |
The parameter 'location' of function 'add_waypoint' is passed by value |
OPT-14-3 |
|
787: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
787: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
787: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
800: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
806: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
812: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
822: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
824: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
824: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
824: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
824: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
828: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
842: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
851: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
851: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
851: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
856: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
888: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
889: |
Parameter 'exit' is not validated before use |
CERT_C-API00-a-3 |
|
889: |
Reserved name 'exit' used |
CERT_CPP-DCL51-e-3 |
|
889: |
Reserved name 'exit' used |
CERT_CPP-DCL51-f-3 |
|
890: |
Parameter 'properties' is not validated before use |
CERT_C-API00-a-3 |
|
890: |
The parameter 'properties' of function 'add_lane' is passed by value |
OPT-14-3 |
|
892: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
892: |
Assert contains function-like call to 'waypoint_index' |
CERT_C-PRE31-c-3 |
|
892: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
893: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
893: |
Assert contains function-like call to 'waypoint_index' |
CERT_C-PRE31-c-3 |
|
893: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
901: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
901: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
901: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
912: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
918: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
930: |
Declare parameter 'wp_index' as const |
CERT_C-DCL00-a-3 |
|
930: |
Parameter 'wp_index' is not validated before use |
CERT_C-API00-a-3 |
|
936: |
Declare parameter 'wp_index' as const |
CERT_C-DCL00-a-3 |
|
936: |
Parameter 'wp_index' is not validated before use |
CERT_C-API00-a-3 |
|
942: |
Declare parameter 'from_wp' as const |
CERT_C-DCL00-a-3 |
|
942: |
Declare parameter 'to_wp' as const |
CERT_C-DCL00-a-3 |
|
942: |
Parameter 'from_wp' is not validated before use |
CERT_C-API00-a-3 |
|
942: |
Parameter 'to_wp' is not validated before use |
CERT_C-API00-a-3 |
|
953: |
Declare parameter 'from_wp' as const |
CERT_C-DCL00-a-3 |
|
953: |
Declare parameter 'to_wp' as const |
CERT_C-DCL00-a-3 |
|
953: |
Parameter 'from_wp' is not validated before use |
CERT_C-API00-a-3 |
|
953: |
Parameter 'to_wp' is not validated before use |
CERT_C-API00-a-3 |
|
956: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
956: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
956: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
956: |
Cast from 'const rmf_traffic::agv::Graph' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
/rmf_traffic_testing/src/rmf_traffic/agv/Interpolate.cpp |
|
41: |
Declare parameter 's_in' as const |
CERT_C-DCL00-a-3 |
|
41: |
Declare parameter 'v_in' as const |
CERT_C-DCL00-a-3 |
|
41: |
The parameter 't_start' of function 'State' is passed by value |
OPT-14-3 |
|
56: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
56: |
The parameter 'start_time' of function 'compute_traversal' is passed by value |
OPT-14-3 |
|
57: |
Parameter 's_f' is not validated before use |
CERT_C-API00-a-3 |
|
58: |
Parameter 'v_nom' is not validated before use |
CERT_C-API00-a-3 |
|
59: |
Parameter 'a_nom' is not validated before use |
CERT_C-API00-a-3 |
+
|
65: |
A possibly wrong value has been passed as the 1. argument to the "sqrt" function (the expected value: >=0) |
CERT_C-FLP32-a-2 |
|
|
Start of the path
Interpolate.cpp (55): States compute_traversal(
Interpolate.cpp (61): States states;
Interpolate.cpp (62): states.reserve(3);
The point where the wrong value is passed to the function
Interpolate.cpp (65): sqrt(...) |
|
+
|
65: |
Errno is not tested against 0 after the call to the errno-setting-function "sqrt" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Interpolate.cpp (65): sqrt(...)
The value of errno should be checked by this point
Interpolate.cpp (65): const double t_a = std::min(std::sqrt(s_f/a_nom), v_nom/a_nom); |
|
+
|
65: |
Errno is not tested against 0 after the call to the errno-setting-function "sqrt" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Interpolate.cpp (65): sqrt(...)
The value of errno should be checked by this point
Interpolate.cpp (65): const double t_a = std::min(std::sqrt(s_f/a_nom), v_nom/a_nom); |
|
+
|
65: |
Errno may not be set to 0 before the call to the errno-setting-function "sqrt" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Interpolate.cpp (55): States compute_traversal(
Interpolate.cpp (61): States states;
Interpolate.cpp (62): states.reserve(3);
The call to an errno-setting-function
Interpolate.cpp (65): sqrt(...) |
|
+
|
65: |
Errno may not be set to 0 before the call to the errno-setting-function "sqrt" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Interpolate.cpp (55): States compute_traversal(
Interpolate.cpp (61): States states;
Interpolate.cpp (62): states.reserve(3);
The call to an errno-setting-function
Interpolate.cpp (65): sqrt(...) |
|
+
|
68: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Interpolate.cpp (68): pow(...)
Interpolate.cpp (68): const double s_a = 0.5*a_nom*pow(t_a, 2);
Interpolate.cpp (69): const double v = a_nom * t_a;
The value of errno should be checked by this point
Interpolate.cpp (70): states.emplace_back(s_a, v, t_a, start_time); |
|
+
|
68: |
Errno is not tested against 0 after the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Interpolate.cpp (68): pow(...)
Interpolate.cpp (68): const double s_a = 0.5*a_nom*pow(t_a, 2);
Interpolate.cpp (69): const double v = a_nom * t_a;
The value of errno should be checked by this point
Interpolate.cpp (70): states.emplace_back(s_a, v, t_a, start_time); |
|
+
|
68: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Interpolate.cpp (55): States compute_traversal(
Interpolate.cpp (61): States states;
Interpolate.cpp (62): states.reserve(3);
Interpolate.cpp (65): const double t_a = std::min(std::sqrt(s_f/a_nom), v_nom/a_nom);
The call to an errno-setting-function
Interpolate.cpp (68): pow(...) |
|
+
|
68: |
Errno may not be set to 0 before the call to the errno-setting-function "pow" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Interpolate.cpp (55): States compute_traversal(
Interpolate.cpp (61): States states;
Interpolate.cpp (62): states.reserve(3);
Interpolate.cpp (65): const double t_a = std::min(std::sqrt(s_f/a_nom), v_nom/a_nom);
The call to an errno-setting-function
Interpolate.cpp (68): pow(...) |
|
|
68: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
68: |
Values "t_a" passed to library function "pow" without being checked |
CERT_C-MEM07-a-2 |
|
68: |
Values "t_a" passed to library function "pow" without being checked |
CERT_C-MEM04-a-2 |
|
70: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
70: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
70: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
75: |
Implicit conversion from integral to floating type in comparison expression |
CERT_C-EXP39-a-3 |
|
75: |
Use parenthesis to clarify order ('-' is the first operand of '>') |
CERT_C-EXP00-a-3 |
|
78: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
78: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
78: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
82: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
82: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
82: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
92: |
Parameter 'trajectory' is not validated before use |
CERT_C-API00-a-3 |
|
93: |
Parameter 'v_nom' is not validated before use |
CERT_C-API00-a-3 |
|
94: |
Parameter 'a_nom' is not validated before use |
CERT_C-API00-a-3 |
|
95: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
95: |
The parameter 'start_time' of function 'interpolate_translation' is passed by value |
OPT-14-3 |
|
96: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
97: |
Parameter 'finish' is not validated before use |
CERT_C-API00-a-3 |
|
120: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
120: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
120: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
126: |
Parameter 'w_nom' is not validated before use |
CERT_C-API00-a-3 |
|
127: |
Parameter 'alpha_nom' is not validated before use |
CERT_C-API00-a-3 |
|
128: |
Parameter 'start_heading' is not validated before use |
CERT_C-API00-a-3 |
|
129: |
Parameter 'finish_heading' is not validated before use |
CERT_C-API00-a-3 |
|
135: |
Values "diff_heading" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
135: |
Values "diff_heading" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
148: |
Parameter 'trajectory' is not validated before use |
CERT_C-API00-a-3 |
|
149: |
Parameter 'w_nom' is not validated before use |
CERT_C-API00-a-3 |
|
150: |
Parameter 'alpha_nom' is not validated before use |
CERT_C-API00-a-3 |
|
151: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
151: |
The parameter 'start_time' of function 'interpolate_rotation' is passed by value |
OPT-14-3 |
|
152: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
153: |
Parameter 'finish' is not validated before use |
CERT_C-API00-a-3 |
|
161: |
Values "diff_heading" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
161: |
Values "diff_heading" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
165: |
Use parenthesis to clarify order ('<' is the first operand of '?:') |
CERT_C-EXP00-a-3 |
|
177: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
177: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
177: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
189: |
Function 'make_error' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
190: |
Parameter 'traits' is not validated before use |
CERT_C-API00-a-3 |
|
194: |
The string literal is embedded directly in the code: linear velocity |
CERT_C-MSC41-a-1 |
|
196: |
The string literal is embedded directly in the code: linear acceleration |
CERT_C-MSC41-a-1 |
|
198: |
The string literal is embedded directly in the code: rotational velocity |
CERT_C-MSC41-a-1 |
|
200: |
The string literal is embedded directly in the code: rotational acceleration |
CERT_C-MSC41-a-1 |
|
207: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
207: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
211: |
The string literal is embedded directly in the code: [invalid_traits_error] The following traits have invalid values: |
CERT_C-MSC41-a-1 |
|
215: |
The string literal is embedded directly in the code: -- |
CERT_C-MSC41-a-1 |
|
215: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
253: |
Declare parameter 'choice' as const |
CERT_C-DCL00-a-3 |
|
253: |
Parameter 'choice' is not validated before use |
CERT_C-API00-a-3 |
|
267: |
Declare parameter 'dist' as const |
CERT_C-DCL00-a-3 |
|
267: |
Parameter 'dist' is not validated before use |
CERT_C-API00-a-3 |
|
280: |
Declare parameter 'angle' as const |
CERT_C-DCL00-a-3 |
|
280: |
Parameter 'angle' is not validated before use |
CERT_C-API00-a-3 |
|
294: |
Declare parameter 'angle' as const |
CERT_C-DCL00-a-3 |
|
294: |
Parameter 'angle' is not validated before use |
CERT_C-API00-a-3 |
|
309: |
Parameter 'last_position' is not validated before use |
CERT_C-API00-a-3 |
|
310: |
Parameter 'next_position' is not validated before use |
CERT_C-API00-a-3 |
|
311: |
Parameter 'future_position' is not validated before use |
CERT_C-API00-a-3 |
|
312: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
320: |
Use parenthesis to clarify order ('<' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
321: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
329: |
Use parenthesis to clarify order ('>' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
329: |
Use parenthesis to clarify order ('>' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
332: |
Values "dot_product" passed to library function "acos" without being checked |
CERT_C-MEM07-a-2 |
|
332: |
Values "dot_product" passed to library function "acos" without being checked |
CERT_C-MEM04-a-2 |
|
343: |
Use parenthesis to clarify order ('>' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
344: |
Use parenthesis to clarify order ('>' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
357: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
357: |
The parameter 'start_time' of function 'positions' is passed by value |
OPT-14-3 |
|
359: |
Parameter 'input_options' is not validated before use |
CERT_C-API00-a-3 |
|
362: |
Unused function's "make_error" return value |
CERT_C-ERR33-a-1 |
|
362: |
Unused function's "make_error" return value |
CERT_C-POS54-a-1 |
|
362: |
Unused function's "make_error" return value |
CERT_C-EXP12-a-3 |
|
369: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
369: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
369: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
373: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
373: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
388: |
Use parenthesis to clarify order ('+' is the first operand of '<') |
CERT_C-EXP00-a-3 |
|
388: |
Use parenthesis to clarify order ('<' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
398: |
Assert contains function-like call to 'finish_time' |
CERT_C-PRE31-c-3 |
|
398: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
403: |
Unused function's "interpolate_rotation" return value |
CERT_C-ERR33-a-1 |
|
403: |
Unused function's "interpolate_rotation" return value |
CERT_C-POS54-a-1 |
|
403: |
Unused function's "interpolate_rotation" return value |
CERT_C-EXP12-a-3 |
|
416: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
417: |
Declare parameter 'holding_point_tolerance' as const |
CERT_C-DCL00-a-3 |
|
423: |
The string literal is embedded directly in the code: [rmf_traffic::agv::internal::interpolate_time_along_quadratic_straight_line]
Invalid size for trajectory:
|
CERT_C-MSC41-a-1 |
|
466: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
466: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
466: |
Values "tau_f" passed to library function "pow" without being checked |
CERT_C-MEM07-a-2 |
|
466: |
Values "tau_f" passed to library function "pow" without being checked |
CERT_C-MEM04-a-2 |
|
467: |
Implicit conversion from integral to floating type in arithmetic expression |
CERT_C-EXP39-a-3 |
|
468: |
Use parenthesis to clarify order ('>' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
468: |
Use parenthesis to clarify order ('>=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
490: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
500: |
The string literal is embedded directly in the code: [rmf_traffic::agv::internal:: |
CERT_C-MSC41-a-1 |
|
501: |
The string literal is embedded directly in the code: interpolate_time_along_quadratic_straight_line] Position ( |
CERT_C-MSC41-a-1 |
|
502: |
The string literal is embedded directly in the code: ) does not lie along the |
CERT_C-MSC41-a-1 |
|
503: |
The string literal is embedded directly in the code: trajectory: |
CERT_C-MSC41-a-1 |
|
505: |
'for' statement in a function 'interpolate_time_along_quadratic_straight_line' should be followed by a block |
CERT_C-EXP19-a-2 |
|
506: |
The string literal is embedded directly in the code: ( |
CERT_C-MSC41-a-1 |
|
506: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/agv/LaneClosure.cpp |
|
29: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
29: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
31: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
42: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
42: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
69: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
69: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
98: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
113: |
'for' statement in a function '_recalculate_hash' should be followed by a block |
CERT_C-EXP19-a-2 |
|
117: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
122: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
137: |
Parameter 'lane' is not validated before use |
CERT_C-API00-a-3 |
|
143: |
Parameter 'lane' is not validated before use |
CERT_C-API00-a-3 |
|
149: |
Parameter 'lane' is not validated before use |
CERT_C-API00-a-3 |
|
156: |
Declare parameter 'lane' as const |
CERT_C-DCL00-a-3 |
|
156: |
Parameter 'lane' is not validated before use |
CERT_C-API00-a-3 |
|
169: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/Planner.cpp |
|
47: |
The parameter 'graph' of function 'Configuration' is passed by value |
OPT-14-3 |
|
48: |
The parameter 'traits' of function 'Configuration' is passed by value |
OPT-14-3 |
|
49: |
The parameter 'interpolation' of function 'Configuration' is passed by value |
OPT-14-3 |
|
62: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
|
62: |
Parameter 'graph' of function 'graph' is passed by value |
CERT_CPP-OOP51-a-3 |
|
62: |
The parameter 'graph' of function 'graph' is passed by value |
OPT-14-3 |
|
81: |
Parameter 'traits' is not validated before use |
CERT_C-API00-a-3 |
|
81: |
The parameter 'traits' of function 'vehicle_traits' is passed by value |
OPT-14-3 |
|
101: |
Parameter 'interpolate' is not validated before use |
CERT_C-API00-a-3 |
|
101: |
The parameter 'interpolate' of function 'interpolation' is passed by value |
OPT-14-3 |
|
121: |
Parameter 'closures' is not validated before use |
CERT_C-API00-a-3 |
|
121: |
The parameter 'closures' of function 'lane_closures' is passed by value |
OPT-14-3 |
|
141: |
Declare parameter 'per_meter' as const |
CERT_C-DCL00-a-3 |
|
141: |
Parameter 'per_meter' is not validated before use |
CERT_C-API00-a-3 |
|
173: |
The parameter 'validator' of function 'Options' is passed by value |
OPT-14-3 |
|
174: |
The parameter 'min_hold_time' of function 'Options' is passed by value |
OPT-14-3 |
|
175: |
Parameter 'interrupt_flag' is not validated before use |
CERT_C-API00-a-3 |
|
176: |
The parameter 'maximum_cost_estimate' of function 'Options' is passed by value |
OPT-14-3 |
|
177: |
The parameter 'saturation_limit' of function 'Options' is passed by value |
OPT-14-3 |
|
186: |
Unused function's "interrupt_flag" return value |
CERT_C-ERR33-a-1 |
|
186: |
Unused function's "interrupt_flag" return value |
CERT_C-POS54-a-1 |
|
186: |
Unused function's "interrupt_flag" return value |
CERT_C-EXP12-a-3 |
|
191: |
The parameter 'validator' of function 'Options' is passed by value |
OPT-14-3 |
|
192: |
The parameter 'min_hold_time' of function 'Options' is passed by value |
OPT-14-3 |
|
193: |
The parameter 'interrupter' of function 'Options' is passed by value |
OPT-14-3 |
|
194: |
The parameter 'maximum_cost_estimate' of function 'Options' is passed by value |
OPT-14-3 |
|
195: |
The parameter 'saturation_limit' of function 'Options' is passed by value |
OPT-14-3 |
|
209: |
Parameter 'v' is not validated before use |
CERT_C-API00-a-3 |
|
209: |
The parameter 'v' of function 'validator' is passed by value |
OPT-14-3 |
|
223: |
Parameter 'holding_time' is not validated before use |
CERT_C-API00-a-3 |
|
223: |
The parameter 'holding_time' of function 'minimum_holding_time' is passed by value |
OPT-14-3 |
|
237: |
Parameter 'cb' is not validated before use |
CERT_C-API00-a-3 |
|
237: |
The parameter 'cb' of function 'interrupter' is passed by value |
OPT-14-3 |
|
252: |
Declare parameter 'flag' as const |
CERT_C-DCL00-a-3 |
|
277: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
277: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
277: |
The parameter 'value' of function 'maximum_cost_estimate' is passed by value |
OPT-14-3 |
|
291: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
291: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
291: |
The parameter 'value' of function 'saturation_limit' is passed by value |
OPT-14-3 |
|
305: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
305: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
305: |
The parameter 'value' of function 'dependency_window' is passed by value |
OPT-14-3 |
|
319: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
319: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
319: |
The parameter 'value' of function 'dependency_resoution' is passed by value |
OPT-14-3 |
|
332: |
No constructor. All member variables: 'orientation, waypoint' should be initialized in constructor |
INIT-06-1 |
|
346: |
The parameter 'initial_time' of function 'Start' is passed by value |
OPT-14-3 |
|
349: |
The parameter 'initial_location' of function 'Start' is passed by value |
OPT-14-3 |
|
350: |
The parameter 'initial_lane' of function 'Start' is passed by value |
OPT-14-3 |
|
364: |
Parameter 'initial_time' is not validated before use |
CERT_C-API00-a-3 |
|
364: |
The parameter 'initial_time' of function 'time' is passed by value |
OPT-14-3 |
|
377: |
Parameter 'initial_waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
390: |
Parameter 'initial_orientation' is not validated before use |
CERT_C-API00-a-3 |
|
410: |
Parameter 'initial_location' is not validated before use |
CERT_C-API00-a-3 |
|
410: |
The parameter 'initial_location' of function 'location' is passed by value |
OPT-14-3 |
|
424: |
Declare parameter 'initial_lane' as const |
CERT_C-DCL00-a-3 |
|
424: |
Parameter 'initial_lane' is not validated before use |
CERT_C-API00-a-3 |
|
424: |
The parameter 'initial_lane' of function 'lane' is passed by value |
OPT-14-3 |
|
431: |
No constructor. All member variables: 'waypoint' should be initialized in constructor |
INIT-06-1 |
|
470: |
The parameter 'minimum_time' of function 'Goal' is passed by value |
OPT-14-3 |
|
471: |
The parameter 'goal_orientation' of function 'Goal' is passed by value |
OPT-14-3 |
|
483: |
Parameter 'goal_waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
496: |
Parameter 'goal_orientation' is not validated before use |
CERT_C-API00-a-3 |
|
519: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
519: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
519: |
The parameter 'value' of function 'minimum_time' is passed by value |
OPT-14-3 |
|
552: |
The parameter 'result' of function 'make' is passed by value |
OPT-14-3 |
|
557: |
The local variable 'plan' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
568: |
The parameter 'config' of function 'Planner' is passed by value |
OPT-14-3 |
|
569: |
The parameter 'default_options' of function 'Planner' is passed by value |
OPT-14-3 |
|
582: |
Parameter 'interface' is not validated before use |
CERT_C-API00-a-3 |
|
583: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
584: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
584: |
The parameter 'goal' of function 'generate' is passed by value |
OPT-14-3 |
|
585: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
585: |
The parameter 'options' of function 'generate' is passed by value |
OPT-14-3 |
|
589: |
The local variable 'state' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
592: |
The local variable 'plan' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
607: |
Parameter 'interface' is not validated before use |
CERT_C-API00-a-3 |
|
608: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
609: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
609: |
The parameter 'goal' of function 'setup' is passed by value |
OPT-14-3 |
|
610: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
610: |
The parameter 'options' of function 'setup' is passed by value |
OPT-14-3 |
|
612: |
The local variable 'state' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
627: |
Parameter 'r' is not validated before use |
CERT_C-API00-a-3 |
|
640: |
Parameter 'default_options' is not validated before use |
CERT_C-API00-a-3 |
|
640: |
The parameter 'default_options' of function 'set_default_options' is passed by value |
OPT-14-3 |
|
659: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
659: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
659: |
The parameter 'goal' of function 'plan' is passed by value |
OPT-14-3 |
|
670: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
671: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
671: |
The parameter 'goal' of function 'plan' is passed by value |
OPT-14-3 |
|
672: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
672: |
The parameter 'options' of function 'plan' is passed by value |
OPT-14-3 |
|
682: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
682: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
682: |
The parameter 'goal' of function 'plan' is passed by value |
OPT-14-3 |
|
693: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
694: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
694: |
The parameter 'goal' of function 'plan' is passed by value |
OPT-14-3 |
|
695: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
695: |
The parameter 'options' of function 'plan' is passed by value |
OPT-14-3 |
|
705: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
705: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
705: |
The parameter 'goal' of function 'setup' is passed by value |
OPT-14-3 |
|
716: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
717: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
717: |
The parameter 'goal' of function 'setup' is passed by value |
OPT-14-3 |
|
718: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
718: |
The parameter 'options' of function 'setup' is passed by value |
OPT-14-3 |
|
728: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
728: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
728: |
The parameter 'goal' of function 'setup' is passed by value |
OPT-14-3 |
|
739: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
740: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
740: |
The parameter 'goal' of function 'setup' is passed by value |
OPT-14-3 |
|
741: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
741: |
The parameter 'options' of function 'setup' is passed by value |
OPT-14-3 |
|
793: |
Parameter 'new_start' is not validated before use |
CERT_C-API00-a-3 |
|
804: |
Parameter 'new_start' is not validated before use |
CERT_C-API00-a-3 |
|
805: |
Parameter 'new_options' is not validated before use |
CERT_C-API00-a-3 |
|
805: |
The parameter 'new_options' of function 'replan' is passed by value |
OPT-14-3 |
|
815: |
Parameter 'new_starts' is not validated before use |
CERT_C-API00-a-3 |
|
826: |
Parameter 'new_starts' is not validated before use |
CERT_C-API00-a-3 |
|
827: |
Parameter 'new_options' is not validated before use |
CERT_C-API00-a-3 |
|
827: |
The parameter 'new_options' of function 'replan' is passed by value |
OPT-14-3 |
|
837: |
Parameter 'new_start' is not validated before use |
CERT_C-API00-a-3 |
|
848: |
Parameter 'new_start' is not validated before use |
CERT_C-API00-a-3 |
|
849: |
Parameter 'new_options' is not validated before use |
CERT_C-API00-a-3 |
|
849: |
The parameter 'new_options' of function 'setup' is passed by value |
OPT-14-3 |
|
859: |
Parameter 'new_starts' is not validated before use |
CERT_C-API00-a-3 |
|
870: |
Parameter 'new_starts' is not validated before use |
CERT_C-API00-a-3 |
|
871: |
Parameter 'new_options' is not validated before use |
CERT_C-API00-a-3 |
|
871: |
The parameter 'new_options' of function 'setup' is passed by value |
OPT-14-3 |
|
894: |
Parameter 'interrupt_flag' is not validated before use |
CERT_C-API00-a-3 |
|
896: |
Unused function's "interrupt_flag" return value |
CERT_C-ERR33-a-1 |
|
896: |
Unused function's "interrupt_flag" return value |
CERT_C-POS54-a-1 |
|
896: |
Unused function's "interrupt_flag" return value |
CERT_C-EXP12-a-3 |
|
913: |
Parameter 'new_options' is not validated before use |
CERT_C-API00-a-3 |
|
913: |
The parameter 'new_options' of function 'options' is passed by value |
OPT-14-3 |
|
982: |
'for' statement in a function 'blockers' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1093: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
|
1095: |
Parameter 'pose' is not validated before use |
CERT_C-API00-a-3 |
|
1095: |
The parameter 'pose' of function 'compute_plan_starts' is passed by value |
OPT-14-3 |
|
1096: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
1096: |
The parameter 'start_time' of function 'compute_plan_starts' is passed by value |
OPT-14-3 |
|
1152: |
Variable "entry_waypoint_index" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
1159: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1159: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1159: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1169: |
Variable "exit_waypoint_index" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
1176: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1176: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1176: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1186: |
Variable "exit_waypoint_index" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
1190: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1190: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1190: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1219: |
The parameter 'goal' of function 'Implementation' is passed by value |
OPT-14-3 |
|
1220: |
The parameter 'options' of function 'Implementation' is passed by value |
OPT-14-3 |
|
1229: |
Declare parameter 'interface' as const |
CERT_C-DCL00-a-3 |
|
1229: |
Parameter 'interface' is not validated before use |
CERT_C-API00-a-3 |
|
1230: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
1231: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
1231: |
The parameter 'goal' of function 'make' is passed by value |
OPT-14-3 |
|
1232: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
1232: |
The parameter 'options' of function 'make' is passed by value |
OPT-14-3 |
|
1287: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
1288: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
1288: |
The parameter 'goal' of function 'begin' is passed by value |
OPT-14-3 |
|
1289: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
1289: |
The parameter 'options' of function 'begin' is passed by value |
OPT-14-3 |
|
1299: |
Parameter 'result' is not validated before use |
CERT_C-API00-a-3 |
|
1306: |
Parameter 'result' is not validated before use |
CERT_C-API00-a-3 |
|
1313: |
Parameter 'result' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/Rollout.cpp |
|
35: |
The parameter 'result' of function 'Rollout' is passed by value |
OPT-14-3 |
|
46: |
Declare parameter 'blocker' as const |
CERT_C-DCL00-a-3 |
|
46: |
Parameter 'blocker' is not validated before use |
CERT_C-API00-a-3 |
|
47: |
Declare parameter 'span' as const |
CERT_C-DCL00-a-3 |
|
47: |
Parameter 'span' is not validated before use |
CERT_C-API00-a-3 |
|
47: |
The parameter 'span' of function 'expand' is passed by value |
OPT-14-3 |
|
48: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
49: |
Declare parameter 'max_rollouts' as const |
CERT_C-DCL00-a-3 |
|
49: |
Parameter 'max_rollouts' is not validated before use |
CERT_C-API00-a-3 |
|
49: |
The parameter 'max_rollouts' of function 'expand' is passed by value |
OPT-14-3 |
|
71: |
Declare parameter 'blocker' as const |
CERT_C-DCL00-a-3 |
|
71: |
Parameter 'blocker' is not validated before use |
CERT_C-API00-a-3 |
|
72: |
Declare parameter 'span' as const |
CERT_C-DCL00-a-3 |
|
72: |
Parameter 'span' is not validated before use |
CERT_C-API00-a-3 |
|
72: |
The parameter 'span' of function 'expand' is passed by value |
OPT-14-3 |
|
73: |
Declare parameter 'max_rollouts' as const |
CERT_C-DCL00-a-3 |
|
73: |
Parameter 'max_rollouts' is not validated before use |
CERT_C-API00-a-3 |
|
73: |
The parameter 'max_rollouts' of function 'expand' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/RouteValidator.cpp |
|
25: |
No constructor. All member variables: 'participant, viewer' should be initialized in constructor |
INIT-06-1 |
|
40: |
The parameter 'profile' of function 'ScheduleRouteValidator' is passed by value |
OPT-14-3 |
|
56: |
The parameter 'profile' of function 'ScheduleRouteValidator' is passed by value |
OPT-14-3 |
|
70: |
Parameter 'viewer' is not validated before use |
CERT_C-API00-a-3 |
|
84: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
98: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
103: |
Unused function's "set_upper_time_bound" return value |
CERT_C-ERR33-a-1 |
|
103: |
Unused function's "set_upper_time_bound" return value |
CERT_C-POS54-a-1 |
|
103: |
Unused function's "set_upper_time_bound" return value |
CERT_C-EXP12-a-3 |
|
164: |
Parameter 'viewer' is not validated before use |
CERT_C-API00-a-3 |
|
167: |
'for' statement in a function 'get_stakeholders' should be followed by a block |
CERT_C-EXP19-a-2 |
|
168: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
168: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
168: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
175: |
The parameter 'profile' of function 'Implementation' is passed by value |
OPT-14-3 |
|
187: |
'for' statement in a function 'Implementation' should be followed by a block |
CERT_C-EXP19-a-2 |
|
201: |
Function 'make' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
202: |
Parameter 'data' is not validated before use |
CERT_C-API00-a-3 |
|
203: |
Parameter 'rollouts' is not validated before use |
CERT_C-API00-a-3 |
|
203: |
The parameter 'rollouts' of function 'make' is passed by value |
OPT-14-3 |
|
216: |
Parameter 'data' is not validated before use |
CERT_C-API00-a-3 |
|
217: |
Parameter 'rollout' is not validated before use |
CERT_C-API00-a-3 |
|
217: |
The parameter 'rollout' of function 'make_ptr' is passed by value |
OPT-14-3 |
|
227: |
The parameter 'profile' of function 'Generator' is passed by value |
OPT-14-3 |
|
245: |
Parameter 'val' is not validated before use |
CERT_C-API00-a-3 |
|
253: |
Parameter 'val' is not validated before use |
CERT_C-API00-a-3 |
|
261: |
Function 'begin' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
264: |
'for' statement in a function 'begin' should be followed by a block |
CERT_C-EXP19-a-2 |
|
293: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
293: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
294: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
294: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
295: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
295: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
299: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
303: |
'for' statement in a function 'all' should be followed by a block |
CERT_C-EXP19-a-2 |
|
306: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
315: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
323: |
'for' statement in a function 'all' should be followed by a block |
CERT_C-EXP19-a-2 |
|
326: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
326: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
326: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
343: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
343: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
350: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
364: |
Function 'next' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
365: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
377: |
The string literal is embedded directly in the code: [NegotiatingRouteValidator::next] Requested next alternative for |
CERT_C-MSC41-a-1 |
|
378: |
The string literal is embedded directly in the code: but the only options are [ |
CERT_C-MSC41-a-1 |
|
380: |
'for' statement in a function 'next' should be followed by a block |
CERT_C-EXP19-a-2 |
|
381: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
383: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
423: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
430: |
Unused function's "set_upper_time_bound" return value |
CERT_C-ERR33-a-1 |
|
430: |
Unused function's "set_upper_time_bound" return value |
CERT_C-POS54-a-1 |
|
430: |
Unused function's "set_upper_time_bound" return value |
CERT_C-EXP12-a-3 |
|
521: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
521: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
521: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
526: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
526: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
526: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
572: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
572: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
572: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
577: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
577: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
577: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/SimpleNegotiator.cpp |
|
46: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
55: |
The parameter 'approval_cb' of function 'Options' is passed by value |
OPT-14-3 |
|
57: |
The parameter 'maximum_cost_leeway' of function 'Options' is passed by value |
OPT-14-3 |
|
58: |
The parameter 'maximum_alts' of function 'Options' is passed by value |
OPT-14-3 |
|
59: |
The parameter 'min_hold_time' of function 'Options' is passed by value |
OPT-14-3 |
|
74: |
Parameter 'approval_cb' is not validated before use |
CERT_C-API00-a-3 |
|
74: |
The parameter 'approval_cb' of function 'approval_callback' is passed by value |
OPT-14-3 |
|
82: |
Parameter 'flag' is not validated before use |
CERT_C-API00-a-3 |
|
97: |
Declare parameter 'leeway' as const |
CERT_C-DCL00-a-3 |
|
97: |
Parameter 'leeway' is not validated before use |
CERT_C-API00-a-3 |
|
97: |
The parameter 'leeway' of function 'maximum_cost_leeway' is passed by value |
OPT-14-3 |
|
112: |
Parameter 'cost' is not validated before use |
CERT_C-API00-a-3 |
|
112: |
The parameter 'cost' of function 'minimum_cost_threshold' is passed by value |
OPT-14-3 |
|
126: |
Parameter 'cost' is not validated before use |
CERT_C-API00-a-3 |
|
126: |
The parameter 'cost' of function 'maximum_cost_threshold' is passed by value |
OPT-14-3 |
|
140: |
Declare parameter 'num' as const |
CERT_C-DCL00-a-3 |
|
140: |
Parameter 'num' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
The parameter 'num' of function 'maximum_alternatives' is passed by value |
OPT-14-3 |
|
154: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
154: |
Parameter 'value' is not validated before use |
CERT_C-API00-a-3 |
|
154: |
The parameter 'value' of function 'minimum_holding_time' is passed by value |
OPT-14-3 |
|
182: |
The parameter 'starts_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
183: |
The parameter 'goal_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
184: |
The parameter 'configuration_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
185: |
The parameter 'options_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
199: |
The parameter 'starts_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
200: |
The parameter 'goal_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
202: |
The parameter 'options_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
210: |
Unused function's "minimum_holding_time" return value |
CERT_C-ERR33-a-1 |
|
210: |
Unused function's "minimum_holding_time" return value |
CERT_C-POS54-a-1 |
|
210: |
Unused function's "minimum_holding_time" return value |
CERT_C-EXP12-a-3 |
|
218: |
The parameter 'start' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
219: |
The parameter 'goal' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
220: |
The parameter 'planner_configuration' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
221: |
The parameter 'options' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
236: |
The parameter 'starts' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
237: |
The parameter 'goal' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
238: |
The parameter 'planner_configuration' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
239: |
The parameter 'options' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
253: |
The parameter 'starts' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
254: |
The parameter 'goal' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
256: |
The parameter 'options' of function 'SimpleNegotiator' is passed by value |
OPT-14-3 |
|
270: |
Parameter 'ids' is not validated before use |
CERT_C-API00-a-3 |
|
271: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
271: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
277: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
279: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
279: |
Assert contains function-like call to 'trajectory' |
CERT_C-PRE31-c-3 |
|
279: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
280: |
The string literal is embedded directly in the code: (start) --> |
CERT_C-MSC41-a-1 |
|
281: |
The string literal is embedded directly in the code: ( |
CERT_C-MSC41-a-1 |
|
281: |
The string literal is embedded directly in the code: ; |
CERT_C-MSC41-a-1 |
|
283: |
The string literal is embedded directly in the code: ) --> |
CERT_C-MSC41-a-1 |
|
290: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
291: |
Parameter 'start_time' is not validated before use |
CERT_C-API00-a-3 |
|
291: |
The parameter 'start_time' of function 'print_route' is passed by value |
OPT-14-3 |
|
293: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
293: |
Assert contains function-like call to 'trajectory' |
CERT_C-PRE31-c-3 |
|
293: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
302: |
The string literal is embedded directly in the code: ( |
CERT_C-MSC41-a-1 |
|
302: |
The string literal is embedded directly in the code: ; |
CERT_C-MSC41-a-1 |
|
303: |
The string literal is embedded directly in the code: ) --> |
CERT_C-MSC41-a-1 |
|
313: |
The string literal is embedded directly in the code: No plan needed! |
CERT_C-MSC41-a-1 |
|
317: |
Declare local variable 'start_time' as const |
CERT_C-DCL00-a-3 |
|
318: |
'for' statement in a function 'print_itinerary' should be followed by a block |
CERT_C-EXP19-a-2 |
|
321: |
The string literal is embedded directly in the code: (end) |
CERT_C-MSC41-a-1 |
|
330: |
Constructor 'AlternativesTracker' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
330: |
The parameter 'participants' of function 'AlternativesTracker' is passed by value |
OPT-14-3 |
|
356: |
Use parenthesis to clarify order ('!=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
383: |
Value 38 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
384: |
Parameter 'table_viewer' is not validated before use |
CERT_C-API00-a-3 |
|
385: |
Parameter 'responder' is not validated before use |
CERT_C-API00-a-3 |
|
414: |
The string literal is embedded directly in the code: Responding to [ |
CERT_C-MSC41-a-1 |
|
415: |
'for' statement in a function 'respond' should be followed by a block |
CERT_C-EXP19-a-2 |
|
416: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
416: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
417: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
438: |
The string literal is embedded directly in the code: Negotiating without rollouts |
CERT_C-MSC41-a-1 |
|
442: |
The string literal is embedded directly in the code: Negotiating with rollouts: |
CERT_C-MSC41-a-1 |
|
448: |
The string literal is embedded directly in the code: ( |
CERT_C-MSC41-a-1 |
|
448: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
449: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
449: |
The string literal is embedded directly in the code: / |
CERT_C-MSC41-a-1 |
|
455: |
Unused function's "validator" return value |
CERT_C-ERR33-a-1 |
|
455: |
Unused function's "validator" return value |
CERT_C-POS54-a-1 |
|
455: |
Unused function's "validator" return value |
CERT_C-EXP12-a-3 |
|
460: |
The string literal is embedded directly in the code: Initial cost estimate: |
CERT_C-MSC41-a-1 |
|
488: |
Unused function's "maximum_cost_estimate" return value |
CERT_C-ERR33-a-1 |
|
488: |
Unused function's "maximum_cost_estimate" return value |
CERT_C-POS54-a-1 |
|
488: |
Unused function's "maximum_cost_estimate" return value |
CERT_C-EXP12-a-3 |
|
490: |
Unused function's "resume" return value |
CERT_C-ERR33-a-1 |
|
490: |
Unused function's "resume" return value |
CERT_C-POS54-a-1 |
|
490: |
Unused function's "resume" return value |
CERT_C-EXP12-a-3 |
|
497: |
The string literal is embedded directly in the code: Maximum cost leeway factor: |
CERT_C-MSC41-a-1 |
|
500: |
The string literal is embedded directly in the code: Submitting: |
CERT_C-MSC41-a-1 |
|
505: |
Declare local variable 'options_approval_callback' as const |
CERT_C-DCL00-a-3 |
|
520: |
The string literal is embedded directly in the code: >>>>> Submitting |
CERT_C-MSC41-a-1 |
|
532: |
The string literal is embedded directly in the code: ======= Failed ratio: |
CERT_C-MSC41-a-1 |
|
537: |
The string literal is embedded directly in the code: Failed to find a plan. Blocked by: |
CERT_C-MSC41-a-1 |
|
538: |
'for' statement in a function 'respond' should be followed by a block |
CERT_C-EXP19-a-2 |
|
539: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
576: |
The string literal is embedded directly in the code: Negotiation parent [ |
CERT_C-MSC41-a-1 |
|
577: |
The string literal is embedded directly in the code: ] is a blocker |
CERT_C-MSC41-a-1 |
|
580: |
Unused function's "mask" return value |
CERT_C-ERR33-a-1 |
|
580: |
Unused function's "mask" return value |
CERT_C-POS54-a-1 |
|
580: |
Unused function's "mask" return value |
CERT_C-EXP12-a-3 |
|
581: |
Unused function's "interrupt_flag" return value |
CERT_C-ERR33-a-1 |
|
581: |
Unused function's "interrupt_flag" return value |
CERT_C-POS54-a-1 |
|
581: |
Unused function's "interrupt_flag" return value |
CERT_C-EXP12-a-3 |
|
582: |
Unused function's "validator" return value |
CERT_C-ERR33-a-1 |
|
582: |
Unused function's "validator" return value |
CERT_C-POS54-a-1 |
|
582: |
Unused function's "validator" return value |
CERT_C-EXP12-a-3 |
|
584: |
Unused function's "minimum_holding_time" return value |
CERT_C-ERR33-a-1 |
|
584: |
Unused function's "minimum_holding_time" return value |
CERT_C-POS54-a-1 |
|
584: |
Unused function's "minimum_holding_time" return value |
CERT_C-EXP12-a-3 |
|
596: |
The string literal is embedded directly in the code: Could not roll out any alternatives |
CERT_C-MSC41-a-1 |
|
603: |
The string literal is embedded directly in the code: Rolled out [ |
CERT_C-MSC41-a-1 |
|
603: |
The string literal is embedded directly in the code: ] alternatives: |
CERT_C-MSC41-a-1 |
|
617: |
Unused function's "interrupt_flag" return value |
CERT_C-ERR33-a-1 |
|
617: |
Unused function's "interrupt_flag" return value |
CERT_C-POS54-a-1 |
|
617: |
Unused function's "interrupt_flag" return value |
CERT_C-EXP12-a-3 |
|
618: |
Unused function's "minimum_holding_time" return value |
CERT_C-ERR33-a-1 |
|
618: |
Unused function's "minimum_holding_time" return value |
CERT_C-POS54-a-1 |
|
618: |
Unused function's "minimum_holding_time" return value |
CERT_C-EXP12-a-3 |
|
625: |
The string literal is embedded directly in the code: >>>>> Rejecting |
CERT_C-MSC41-a-1 |
|
634: |
The string literal is embedded directly in the code: >>>>> Forfeiting with blockers |
CERT_C-MSC41-a-1 |
|
641: |
The string literal is embedded directly in the code: >>>>> Forfeiting with NO BLOCKERS |
CERT_C-MSC41-a-1 |
|
650: |
Parameter 'negotiator' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/VehicleTraits.cpp |
|
25: |
Parameter 'limits' is not validated before use |
CERT_C-API00-a-3 |
|
32: |
The parameter 'linear' of function 'Implementation' is passed by value |
OPT-14-3 |
|
33: |
The parameter 'rotation' of function 'Implementation' is passed by value |
OPT-14-3 |
|
34: |
The parameter 'profile' of function 'Implementation' is passed by value |
OPT-14-3 |
|
35: |
Declare parameter 'differential' as const |
CERT_C-DCL00-a-3 |
|
35: |
The parameter 'differential' of function 'Implementation' is passed by value |
OPT-14-3 |
|
47: |
Parameter 'traits' is not validated before use |
CERT_C-API00-a-3 |
|
64: |
Declare parameter 'nom_vel' as const |
CERT_C-DCL00-a-3 |
|
64: |
Parameter 'nom_vel' is not validated before use |
CERT_C-API00-a-3 |
|
77: |
Declare parameter 'nom_accel' as const |
CERT_C-DCL00-a-3 |
|
77: |
Parameter 'nom_accel' is not validated before use |
CERT_C-API00-a-3 |
|
93: |
Use parenthesis to clarify order ('>' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
93: |
Use parenthesis to clarify order ('>' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
97: |
No constructor. All member variables: 'reversible' should be initialized in constructor |
INIT-06-1 |
|
108: |
The parameter 'forward' of function 'Differential' is passed by value |
OPT-14-3 |
|
117: |
Parameter 'forward' is not validated before use |
CERT_C-API00-a-3 |
|
117: |
The parameter 'forward' of function 'set_forward' is passed by value |
OPT-14-3 |
|
131: |
Declare parameter 'reversible' as const |
CERT_C-DCL00-a-3 |
|
131: |
Parameter 'reversible' is not validated before use |
CERT_C-API00-a-3 |
|
158: |
The parameter 'linear' of function 'VehicleTraits' is passed by value |
OPT-14-3 |
|
159: |
The parameter 'rotational' of function 'VehicleTraits' is passed by value |
OPT-14-3 |
|
160: |
The parameter 'profile' of function 'VehicleTraits' is passed by value |
OPT-14-3 |
|
161: |
The parameter 'steering' of function 'VehicleTraits' is passed by value |
OPT-14-3 |
|
214: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
214: |
The parameter 'parameters' of function 'set_differential' is passed by value |
OPT-14-3 |
|
240: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
240: |
The parameter 'parameters' of function 'set_holonomic' is passed by value |
OPT-14-3 |
+
|
272: |
"this->.get_differential()" may possibly be null |
BD-PB-NP-1 |
|
|
VehicleTraits.cpp (271): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->->_pimpl.operator->()->_steering_mode == Differential) (assuming true)
VehicleTraits.cpp (272): ->get_differential()
VehicleTraits.cpp (233): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->_pimpl.operator->()->_steering_mode == Differential) (assuming false)
Source of null value
VehicleTraits.cpp (236): return nullptr; *** Null value carrier: <returned value of get_differential()>
Null pointer dereferencing point
VehicleTraits.cpp (272): return get_differential()->valid(); *** Null value carrier: <returned value of get_differential()> -> this->.get_differential() *** Null value carrier: this->.get_differential() |
|
+
|
272: |
"this->.get_differential()" may possibly be null |
CERT_C-ERR33-c-1 |
|
|
VehicleTraits.cpp (271): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->->_pimpl.operator->()->_steering_mode == Differential) (assuming true)
VehicleTraits.cpp (272): ->get_differential()
VehicleTraits.cpp (233): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->_pimpl.operator->()->_steering_mode == Differential) (assuming false)
Source of null value
VehicleTraits.cpp (236): return nullptr; *** Null value carrier: <returned value of get_differential()>
Null pointer dereferencing point
VehicleTraits.cpp (272): return get_differential()->valid(); *** Null value carrier: <returned value of get_differential()> -> this->.get_differential() *** Null value carrier: this->.get_differential() |
|
+
|
272: |
"this->.get_differential()" may possibly be null |
CERT_C-EXP34-a-1 |
|
|
VehicleTraits.cpp (271): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->->_pimpl.operator->()->_steering_mode == Differential) (assuming true)
VehicleTraits.cpp (272): ->get_differential()
VehicleTraits.cpp (233): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->_pimpl.operator->()->_steering_mode == Differential) (assuming false)
Source of null value
VehicleTraits.cpp (236): return nullptr; *** Null value carrier: <returned value of get_differential()>
Null pointer dereferencing point
VehicleTraits.cpp (272): return get_differential()->valid(); *** Null value carrier: <returned value of get_differential()> -> this->.get_differential() *** Null value carrier: this->.get_differential() |
|
+
|
272: |
"this->.get_differential()" may possibly be null |
CERT_C-MSC19-b-3 |
|
|
VehicleTraits.cpp (271): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->->_pimpl.operator->()->_steering_mode == Differential) (assuming true)
VehicleTraits.cpp (272): ->get_differential()
VehicleTraits.cpp (233): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->_pimpl.operator->()->_steering_mode == Differential) (assuming false)
Source of null value
VehicleTraits.cpp (236): return nullptr; *** Null value carrier: <returned value of get_differential()>
Null pointer dereferencing point
VehicleTraits.cpp (272): return get_differential()->valid(); *** Null value carrier: <returned value of get_differential()> -> this->.get_differential() *** Null value carrier: this->.get_differential() |
|
+
|
272: |
"this->.get_differential()" may possibly be null |
CERT_C-POS54-c-1 |
|
|
VehicleTraits.cpp (271): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->->_pimpl.operator->()->_steering_mode == Differential) (assuming true)
VehicleTraits.cpp (272): ->get_differential()
VehicleTraits.cpp (233): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->_pimpl.operator->()->_steering_mode == Differential) (assuming false)
Source of null value
VehicleTraits.cpp (236): return nullptr; *** Null value carrier: <returned value of get_differential()>
Null pointer dereferencing point
VehicleTraits.cpp (272): return get_differential()->valid(); *** Null value carrier: <returned value of get_differential()> -> this->.get_differential() *** Null value carrier: this->.get_differential() |
|
+
|
272: |
"this->.get_differential()" may possibly be null |
CERT_CPP-STR51-a-1 |
|
|
VehicleTraits.cpp (271): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->->_pimpl.operator->()->_steering_mode == Differential) (assuming true)
VehicleTraits.cpp (272): ->get_differential()
VehicleTraits.cpp (233): if (_pimpl->_steering_mode == Steering::Differential) *** Condition evaluation: (this->_pimpl.operator->()->_steering_mode == Differential) (assuming false)
Source of null value
VehicleTraits.cpp (236): return nullptr; *** Null value carrier: <returned value of get_differential()>
Null pointer dereferencing point
VehicleTraits.cpp (272): return get_differential()->valid(); *** Null value carrier: <returned value of get_differential()> -> this->.get_differential() *** Null value carrier: this->.get_differential() |
|
/rmf_traffic_testing/src/rmf_traffic/agv/internal_Graph.hpp |
|
43: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
|
48: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/internal_Interpolate.hpp |
|
44: |
Constructor 'Implementation' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
44: |
Constructor does not initialize members: 'always_stop, corner_angle_thresh, rotation_thresh, translation_thresh' |
INIT-06-1 |
|
55: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
76: |
The parameter 'start_time' of function 'interpolate_translation' is passed by value |
OPT-14-3 |
|
94: |
The parameter 'start_time' of function 'interpolate_rotation' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/internal_Planner.hpp |
|
66: |
Parameter 'dep' is not validated before use |
CERT_C-API00-a-3 |
|
66: |
Parameter 'waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
66: |
The parameter 'dep' of function 'add_dependency' is passed by value |
OPT-14-3 |
|
84: |
The parameter 'goal' of function 'generate' is passed by value |
OPT-14-3 |
|
85: |
The parameter 'options' of function 'generate' is passed by value |
OPT-14-3 |
|
90: |
The parameter 'goal' of function 'setup' is passed by value |
OPT-14-3 |
|
91: |
The parameter 'options' of function 'setup' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/internal_VehicleTraits.hpp |
|
27: |
No constructor. All member variables: 'acceleration, velocity' should be initialized in constructor |
INIT-06-1 |
|
58: |
The parameter 'linear' of function 'Implementation' is passed by value |
OPT-14-3 |
|
59: |
The parameter 'rotation' of function 'Implementation' is passed by value |
OPT-14-3 |
|
60: |
The parameter 'profile' of function 'Implementation' is passed by value |
OPT-14-3 |
|
61: |
The parameter 'differential' of function 'Implementation' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/internal_planning.cpp |
|
27: |
The parameter 'config' of function 'make_planner_interface' is passed by value |
OPT-14-3 |
|
33: |
The string literal is embedded directly in the code: [rmf_traffic::agv::planning::make_planner_interface] The rmf_traffic
Planner currently only supports differential drive vehicles.
|
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/agv/internal_planning.hpp |
|
88: |
Function 'initiate' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
90: |
The parameter 'goal' of function 'initiate' is passed by value |
OPT-14-3 |
|
91: |
The parameter 'options' of function 'initiate' is passed by value |
OPT-14-3 |
|
96: |
The parameter 'span' of function 'rollout' is passed by value |
OPT-14-3 |
|
100: |
The parameter 'max_rollouts' of function 'rollout' is passed by value |
OPT-14-3 |
|
121: |
The parameter 'goal' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
122: |
The parameter 'options' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
133: |
The parameter 'config' of function 'make_planner_interface' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/CacheManager.hpp |
|
40: |
Constructor 'SpinLock' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
45: |
'while' statement in a function 'SpinLock' should be followed by a block |
CERT_C-EXP19-a-2 |
|
45: |
In function 'SpinLock': a semi-colon constituting the statement body is placed in the same line as closing ")" - while(); |
CERT_C-EXP15-a-3 |
|
48: |
Names shall be given for all the parameters in function 'SpinLock' |
CERT_C-EXP37-a-3 |
|
49: |
Names shall be given for all the parameters in function '=' |
CERT_C-EXP37-a-3 |
|
51: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
56: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
117: |
The parameter 'storage_initializer' of function 'Upstream' is passed by value |
OPT-14-3 |
|
150: |
The parameter 'storage_initializer' of function 'Cache' is passed by value |
OPT-14-3 |
|
183: |
Constructor 'CacheManager' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
185: |
The parameter 'storage_initializer' of function 'CacheManager' is passed by value |
OPT-14-3 |
|
209: |
Constructor 'CacheManagerMap' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
211: |
The parameter 'storage_initializer' of function 'CacheManagerMap' is passed by value |
OPT-14-3 |
|
273: |
'for' statement in a function 'get' should be followed by a block |
CERT_C-EXP19-a-2 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/DifferentialDriveHeuristic.cpp |
|
60: |
The parameter 'info_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
61: |
Declare parameter 'current_cost_' as const |
CERT_C-DCL00-a-3 |
|
62: |
The parameter 'route_factory_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
107: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
112: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
112: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
116: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
116: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
135: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
179: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
261: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
+
|
267: |
The "this->_graph.operator->().original()->waypoints" variable may be accessed out of bounds at index "waypoint_index", which
may be greater or equal to the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (261): SearchNodePtr rotate_to_goal(const SearchNodePtr& top)
DifferentialDriveHeuristic.cpp (263): if (_goal_yaw.has_value()) *** Condition evaluation: this->_goal_yaw.has_value() (assuming true)
DifferentialDriveHeuristic.cpp (265): const std::size_t waypoint_index = top->info.waypoint;
DifferentialDriveHeuristic.cpp (267): _graph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDriveHeuristic.cpp (267): _graph->original().waypoints[waypoint_index].get_map_name(); |
|
+
|
267: |
The "this->_graph.operator->().original()->waypoints" variable may be accessed out of bounds at index "waypoint_index", which
may be greater or equal to the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (261): SearchNodePtr rotate_to_goal(const SearchNodePtr& top)
DifferentialDriveHeuristic.cpp (263): if (_goal_yaw.has_value()) *** Condition evaluation: this->_goal_yaw.has_value() (assuming true)
DifferentialDriveHeuristic.cpp (265): const std::size_t waypoint_index = top->info.waypoint;
DifferentialDriveHeuristic.cpp (267): _graph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDriveHeuristic.cpp (267): _graph->original().waypoints[waypoint_index].get_map_name(); |
|
|
320: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
321: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
322: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
324: |
Declare local variable 'key' as const |
CERT_C-DCL00-a-3 |
|
364: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
365: |
Parameter 'target_lane_index' is not validated before use |
CERT_C-API00-a-3 |
|
366: |
Parameter 'orientation' is not validated before use |
CERT_C-API00-a-3 |
|
367: |
Parameter 'finish_yaw' is not validated before use |
CERT_C-API00-a-3 |
|
367: |
The parameter 'finish_yaw' of function 'prepare_traversal' is passed by value |
OPT-14-3 |
|
368: |
Parameter 'remaining_cost_estimate' is not validated before use |
CERT_C-API00-a-3 |
|
369: |
The parameter 'entry_event' of function 'prepare_traversal' is passed by value |
OPT-14-3 |
|
370: |
Parameter 'maps' is not validated before use |
CERT_C-API00-a-3 |
+
|
374: |
The "original->lanes" variable may be accessed out of bounds at index "target_lane_index", which may be greater or equal to
the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (363): SearchNodePtr prepare_traversal(
DifferentialDriveHeuristic.cpp (373): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDriveHeuristic.cpp (374): const auto& lane = original.lanes[target_lane_index]; |
|
+
|
374: |
The "original->lanes" variable may be accessed out of bounds at index "target_lane_index", which may be greater or equal to
the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (363): SearchNodePtr prepare_traversal(
DifferentialDriveHeuristic.cpp (373): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDriveHeuristic.cpp (374): const auto& lane = original.lanes[target_lane_index]; |
|
+
|
376: |
The "original->waypoints" variable may be accessed out of bounds at index "target_waypoint_index", which may be greater or
equal to the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (363): SearchNodePtr prepare_traversal(
DifferentialDriveHeuristic.cpp (373): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
DifferentialDriveHeuristic.cpp (374): const auto& lane = original.lanes[target_lane_index];
DifferentialDriveHeuristic.cpp (375): lane.entry()
Graph.cpp (736): return _pimpl->entry;
DifferentialDriveHeuristic.cpp (375): const std::size_t target_waypoint_index = lane.entry().waypoint_index();
Graph.cpp (649): return _pimpl->waypoint;
Out of bounds access point
DifferentialDriveHeuristic.cpp (376): const auto& target_waypoint = original.waypoints[target_waypoint_index]; |
|
+
|
376: |
The "original->waypoints" variable may be accessed out of bounds at index "target_waypoint_index", which may be greater or
equal to the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (363): SearchNodePtr prepare_traversal(
DifferentialDriveHeuristic.cpp (373): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
DifferentialDriveHeuristic.cpp (374): const auto& lane = original.lanes[target_lane_index];
DifferentialDriveHeuristic.cpp (375): lane.entry()
Graph.cpp (736): return _pimpl->entry;
DifferentialDriveHeuristic.cpp (375): const std::size_t target_waypoint_index = lane.entry().waypoint_index();
Graph.cpp (649): return _pimpl->waypoint;
Out of bounds access point
DifferentialDriveHeuristic.cpp (376): const auto& target_waypoint = original.waypoints[target_waypoint_index]; |
|
|
472: |
The parameter 'goal_entry' of function 'DifferentialDriveExpander' is passed by value |
OPT-14-3 |
|
521: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
522: |
Parameter 'old_items' is not validated before use |
CERT_C-API00-a-3 |
|
523: |
Parameter 'new_items' is not validated before use |
CERT_C-API00-a-3 |
+
|
532: |
The "original->lanes" variable may be accessed out of bounds at index "key->start_lane" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (520): auto DifferentialDriveHeuristic::generate(
DifferentialDriveHeuristic.cpp (531): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDriveHeuristic.cpp (532): const auto& start_lane = original.lanes[key.start_lane]; |
|
+
|
532: |
The "original->lanes" variable may be accessed out of bounds at index "key->start_lane" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (520): auto DifferentialDriveHeuristic::generate(
DifferentialDriveHeuristic.cpp (531): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDriveHeuristic.cpp (532): const auto& start_lane = original.lanes[key.start_lane]; |
|
+
|
535: |
The "original->lanes" variable may be accessed out of bounds at index "goal_lane_index", which may be greater or equal to
the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (520): auto DifferentialDriveHeuristic::generate(
DifferentialDriveHeuristic.cpp (531): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
DifferentialDriveHeuristic.cpp (532): const auto& start_lane = original.lanes[key.start_lane];
DifferentialDriveHeuristic.cpp (533): start_lane.entry()
Graph.cpp (736): return _pimpl->entry;
DifferentialDriveHeuristic.cpp (533): const std::size_t start_waypoint_index = start_lane.entry().waypoint_index();
Graph.cpp (649): return _pimpl->waypoint;
DifferentialDriveHeuristic.cpp (534): const std::size_t goal_lane_index = key.goal_lane;
Out of bounds access point
DifferentialDriveHeuristic.cpp (535): const auto& goal_lane = original.lanes[goal_lane_index]; |
|
+
|
535: |
The "original->lanes" variable may be accessed out of bounds at index "goal_lane_index", which may be greater or equal to
the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDriveHeuristic.cpp (520): auto DifferentialDriveHeuristic::generate(
DifferentialDriveHeuristic.cpp (531): const auto& original = _graph->original();
Supergraph.cpp (697): return _original;
DifferentialDriveHeuristic.cpp (532): const auto& start_lane = original.lanes[key.start_lane];
DifferentialDriveHeuristic.cpp (533): start_lane.entry()
Graph.cpp (736): return _pimpl->entry;
DifferentialDriveHeuristic.cpp (533): const std::size_t start_waypoint_index = start_lane.entry().waypoint_index();
Graph.cpp (649): return _pimpl->waypoint;
DifferentialDriveHeuristic.cpp (534): const std::size_t goal_lane_index = key.goal_lane;
Out of bounds access point
DifferentialDriveHeuristic.cpp (535): const auto& goal_lane = original.lanes[goal_lane_index]; |
|
|
545: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
545: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
545: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
555: |
Declare local variable 'yaw' as const |
CERT_C-DCL00-a-3 |
|
601: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
601: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
601: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
605: |
Declare local variable 'node_info' as const |
CERT_C-DCL00-a-3 |
|
626: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
647: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
687: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
687: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
687: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
705: |
Parameter 'supergraph' is not validated before use |
CERT_C-API00-a-3 |
|
715: |
The parameter 'cache' of function 'DifferentialDriveHeuristicAdapter' is passed by value |
OPT-14-3 |
|
717: |
Declare parameter 'goal_waypoint' as const |
CERT_C-DCL00-a-3 |
|
718: |
The parameter 'goal_yaw' of function 'DifferentialDriveHeuristicAdapter' is passed by value |
OPT-14-3 |
|
733: |
Parameter 'yaw' is not validated before use |
CERT_C-API00-a-3 |
|
798: |
Variable "yaw_cost" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
824: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
869: |
Declare parameter 'start' as const |
CERT_C-DCL00-a-3 |
|
869: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
869: |
The parameter 'start' of function 'compute' is passed by value |
OPT-14-3 |
|
891: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/DifferentialDriveHeuristic.hpp |
|
43: |
Constructor 'DifferentialDriveHeuristic' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
73: |
The parameter 'cache' of function 'DifferentialDriveHeuristicAdapter' is passed by value |
OPT-14-3 |
|
76: |
The parameter 'goal_yaw' of function 'DifferentialDriveHeuristicAdapter' is passed by value |
OPT-14-3 |
|
86: |
The parameter 'start' of function 'compute' is passed by value |
OPT-14-3 |
|
104: |
Constructor 'DifferentialDriveCompare' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
132: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/DifferentialDriveMap.cpp |
|
31: |
The parameter 'finish_time_' of function 'RouteInfo' is passed by value |
OPT-14-3 |
|
32: |
Declare parameter 'finish_yaw_' as const |
CERT_C-DCL00-a-3 |
|
33: |
The parameter 'routes_' of function 'RouteInfo' is passed by value |
OPT-14-3 |
|
34: |
Declare parameter 'cost_' as const |
CERT_C-DCL00-a-3 |
|
45: |
Declare parameter 'start' as const |
CERT_C-DCL00-a-3 |
|
45: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
45: |
The parameter 'start' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
46: |
Declare parameter 'finish' as const |
CERT_C-DCL00-a-3 |
|
46: |
Parameter 'finish' is not validated before use |
CERT_C-API00-a-3 |
|
46: |
The parameter 'finish' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
47: |
Declare parameter 'limits' as const |
CERT_C-DCL00-a-3 |
|
47: |
Parameter 'limits' is not validated before use |
CERT_C-API00-a-3 |
|
47: |
The parameter 'limits' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
48: |
Declare parameter 'translation_thresh' as const |
CERT_C-DCL00-a-3 |
|
48: |
Parameter 'translation_thresh' is not validated before use |
CERT_C-API00-a-3 |
|
49: |
Declare parameter 'rotation_thresh' as const |
CERT_C-DCL00-a-3 |
|
49: |
Parameter 'rotation_thresh' is not validated before use |
CERT_C-API00-a-3 |
|
50: |
Declare parameter 'traversal_cost_per_meter' as const |
CERT_C-DCL00-a-3 |
|
50: |
Parameter 'traversal_cost_per_meter' is not validated before use |
CERT_C-API00-a-3 |
|
51: |
Parameter 'maps' is not validated before use |
CERT_C-API00-a-3 |
|
51: |
The parameter 'maps' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
55: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
55: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
55: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
113: |
Parameter 'position' is not validated before use |
CERT_C-API00-a-3 |
|
113: |
The parameter 'position' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
114: |
The parameter 'start_yaw' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
115: |
The parameter 'finish_yaw' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
116: |
Declare parameter 'limits' as const |
CERT_C-DCL00-a-3 |
|
116: |
Parameter 'limits' is not validated before use |
CERT_C-API00-a-3 |
|
116: |
The parameter 'limits' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
117: |
Declare parameter 'rotation_thresh' as const |
CERT_C-DCL00-a-3 |
|
118: |
Parameter 'map' is not validated before use |
CERT_C-API00-a-3 |
|
118: |
The parameter 'map' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
124: |
Result of "*" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
124: |
Result of "*" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
137: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
137: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
137: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
140: |
Unused function's "interpolate_rotation" return value |
CERT_C-ERR33-a-1 |
|
140: |
Unused function's "interpolate_rotation" return value |
CERT_C-POS54-a-1 |
|
140: |
Unused function's "interpolate_rotation" return value |
CERT_C-EXP12-a-3 |
|
201: |
Declare parameter 'position' as const |
CERT_C-DCL00-a-3 |
|
201: |
Parameter 'position' is not validated before use |
CERT_C-API00-a-3 |
|
201: |
The parameter 'position' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
202: |
Declare parameter 'yaw_opt' as const |
CERT_C-DCL00-a-3 |
|
202: |
The parameter 'yaw_opt' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
203: |
Declare parameter 'duration' as const |
CERT_C-DCL00-a-3 |
|
203: |
The parameter 'duration' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
204: |
Declare parameter 'limits' as const |
CERT_C-DCL00-a-3 |
|
204: |
Parameter 'limits' is not validated before use |
CERT_C-API00-a-3 |
|
204: |
The parameter 'limits' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
205: |
Declare parameter 'rotation_thresh' as const |
CERT_C-DCL00-a-3 |
|
205: |
Parameter 'rotation_thresh' is not validated before use |
CERT_C-API00-a-3 |
|
206: |
Parameter 'maps' is not validated before use |
CERT_C-API00-a-3 |
|
206: |
The parameter 'maps' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
208: |
Declare local variable 'factory' as const |
CERT_C-DCL00-a-3 |
|
208: |
Local variable 'factory' declared in function 'make_hold_factory' is unnecessary |
CERT_C-MSC13-a-3 |
|
280: |
Declare parameter 'position' as const |
CERT_C-DCL00-a-3 |
|
280: |
Parameter 'position' is not validated before use |
CERT_C-API00-a-3 |
|
280: |
The parameter 'position' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
281: |
Declare parameter 'target_yaw' as const |
CERT_C-DCL00-a-3 |
|
281: |
The parameter 'target_yaw' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
282: |
Declare parameter 'limits' as const |
CERT_C-DCL00-a-3 |
|
282: |
Parameter 'limits' is not validated before use |
CERT_C-API00-a-3 |
|
282: |
The parameter 'limits' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
283: |
Declare parameter 'rotation_thresh' as const |
CERT_C-DCL00-a-3 |
|
283: |
Parameter 'rotation_thresh' is not validated before use |
CERT_C-API00-a-3 |
|
284: |
Parameter 'maps' is not validated before use |
CERT_C-API00-a-3 |
|
284: |
The parameter 'maps' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
286: |
Declare local variable 'factory' as const |
CERT_C-DCL00-a-3 |
|
286: |
Local variable 'factory' declared in function 'make_start_factory' is unnecessary |
CERT_C-MSC13-a-3 |
|
342: |
Declare parameter 'old_factory' as const |
CERT_C-DCL00-a-3 |
|
342: |
The parameter 'old_factory' of function 'make_recycling_factory' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/DifferentialDriveMap.hpp |
|
48: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
51: |
The string literal is embedded directly in the code: Forward |
CERT_C-MSC41-a-1 |
|
53: |
The string literal is embedded directly in the code: Backward |
CERT_C-MSC41-a-1 |
|
55: |
The string literal is embedded directly in the code: Any |
CERT_C-MSC41-a-1 |
|
57: |
The string literal is embedded directly in the code: Orientation::UNKNOWN |
CERT_C-MSC41-a-1 |
|
70: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
73: |
The string literal is embedded directly in the code: Start |
CERT_C-MSC41-a-1 |
|
75: |
The string literal is embedded directly in the code: Finish |
CERT_C-MSC41-a-1 |
|
77: |
The string literal is embedded directly in the code: Side::UNKNOWN |
CERT_C-MSC41-a-1 |
|
109: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
112: |
Use parenthesis to clarify order ('==' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
113: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
114: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
115: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
116: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
137: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
Use parenthesis to clarify order ('==' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
141: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
142: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
145: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
182: |
The parameter 'finish_time_' of function 'RouteInfo' is passed by value |
OPT-14-3 |
|
184: |
The parameter 'routes_' of function 'RouteInfo' is passed by value |
OPT-14-3 |
|
216: |
Constructor 'KeyHash' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
216: |
Declare parameter 'N_lanes' as const |
CERT_C-DCL00-a-3 |
|
216: |
Parameter 'N_lanes' is not validated before use |
CERT_C-API00-a-3 |
+
|
218: |
Errno is not tested against 0 after the call to the errno-setting-function "log2" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
DifferentialDriveMap.hpp (218): log2(...)
The value of errno should be checked by this point
DifferentialDriveMap.hpp (218): ceil(...) |
|
+
|
218: |
Errno is not tested against 0 after the call to the errno-setting-function "log2" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
DifferentialDriveMap.hpp (218): log2(...)
The value of errno should be checked by this point
DifferentialDriveMap.hpp (218): ceil(...) |
|
+
|
218: |
Errno may not be set to 0 before the call to the errno-setting-function "log2" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
DifferentialDriveMap.hpp (216): KeyHash(std::size_t N_lanes)
The call to an errno-setting-function
DifferentialDriveMap.hpp (218): log2(...) |
|
+
|
218: |
Errno may not be set to 0 before the call to the errno-setting-function "log2" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
DifferentialDriveMap.hpp (216): KeyHash(std::size_t N_lanes)
The call to an errno-setting-function
DifferentialDriveMap.hpp (218): log2(...) |
|
|
218: |
Result of "log2" passed to library function "ceil" without being checked |
CERT_C-MEM07-a-2 |
|
218: |
Result of "log2" passed to library function "ceil" without being checked |
CERT_C-MEM04-a-2 |
|
218: |
Values "N_lanes" passed to library function "log2" without being checked |
CERT_C-MEM07-a-2 |
|
218: |
Values "N_lanes" passed to library function "log2" without being checked |
CERT_C-MEM04-a-2 |
|
225: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
248: |
Constructor 'EntryHash' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
248: |
Declare parameter 'N_lanes' as const |
CERT_C-DCL00-a-3 |
|
248: |
Parameter 'N_lanes' is not validated before use |
CERT_C-API00-a-3 |
+
|
250: |
Errno is not tested against 0 after the call to the errno-setting-function "log2" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
DifferentialDriveMap.hpp (250): log2(...)
The value of errno should be checked by this point
DifferentialDriveMap.hpp (250): ceil(...) |
|
+
|
250: |
Errno is not tested against 0 after the call to the errno-setting-function "log2" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
DifferentialDriveMap.hpp (250): log2(...)
The value of errno should be checked by this point
DifferentialDriveMap.hpp (250): ceil(...) |
|
+
|
250: |
Errno may not be set to 0 before the call to the errno-setting-function "log2" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
DifferentialDriveMap.hpp (248): EntryHash(std::size_t N_lanes)
The call to an errno-setting-function
DifferentialDriveMap.hpp (250): log2(...) |
|
+
|
250: |
Errno may not be set to 0 before the call to the errno-setting-function "log2" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
DifferentialDriveMap.hpp (248): EntryHash(std::size_t N_lanes)
The call to an errno-setting-function
DifferentialDriveMap.hpp (250): log2(...) |
|
|
250: |
Expression of type 'double' is assigned to expression of type 'unsigned long' |
CERT_C-MEM02-a-3 |
|
250: |
Function returning 'double' type is assigned to expression of type 'unsigned long' |
CERT_C-MEM02-b-3 |
|
250: |
Result of "log2" passed to library function "ceil" without being checked |
CERT_C-MEM07-a-2 |
|
250: |
Result of "log2" passed to library function "ceil" without being checked |
CERT_C-MEM04-a-2 |
|
250: |
Values "N_lanes" passed to library function "log2" without being checked |
CERT_C-MEM07-a-2 |
|
250: |
Values "N_lanes" passed to library function "log2" without being checked |
CERT_C-MEM04-a-2 |
|
254: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
268: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
269: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
269: |
The parameter 'key' of function '<<' is passed by value |
OPT-14-3 |
|
271: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
271: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
271: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
272: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
272: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
273: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
279: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
280: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
280: |
The parameter 'entry' of function '<<' is passed by value |
OPT-14-3 |
|
282: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
282: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
282: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
283: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
319: |
The parameter 'start' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
320: |
The parameter 'finish' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
321: |
The parameter 'limits' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
324: |
The parameter 'maps' of function 'make_differential_drive_translate_factory' is passed by value |
OPT-14-3 |
|
329: |
The parameter 'position' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
330: |
The parameter 'start_yaw' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
331: |
The parameter 'finish_yaw' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
332: |
The parameter 'limits' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
334: |
The parameter 'map' of function 'make_rotate_factory' is passed by value |
OPT-14-3 |
|
340: |
The parameter 'position' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
341: |
The parameter 'yaw' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
342: |
The parameter 'duration' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
343: |
The parameter 'limits' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
345: |
The parameter 'maps' of function 'make_hold_factory' is passed by value |
OPT-14-3 |
|
350: |
The parameter 'position' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
351: |
The parameter 'yaw' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
352: |
The parameter 'limits' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
354: |
The parameter 'maps' of function 'make_start_factory' is passed by value |
OPT-14-3 |
|
359: |
The parameter 'old_factory' of function 'make_recycling_factory' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/DifferentialDrivePlanner.cpp |
|
37: |
Function 'reconstruct_nodes' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
57: |
The parameter 'route' of function 'reparent_node_for_holding' is passed by value |
OPT-14-3 |
|
86: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
86: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
100: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
100: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
101: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
101: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
113: |
Assert contains function-like call to 'begin' |
CERT_C-PRE31-c-3 |
|
113: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
117: |
Assert contains function-like call to 'back' |
CERT_C-PRE31-c-3 |
|
117: |
Assert contains function-like call to 'map' |
CERT_C-PRE31-c-3 |
|
117: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
118: |
Assert contains function-like call to 'back' |
CERT_C-PRE31-c-3 |
|
118: |
Assert contains function-like call to 'map' |
CERT_C-PRE31-c-3 |
|
127: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
127: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
127: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
128: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
128: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
128: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
136: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
136: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
136: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
+
|
159: |
"node.operator->()->route_from_parent.back().trajectory().finish_time()" may possibly be null |
BD-PB-NP-1 |
|
|
DifferentialDrivePlanner.cpp (158): const auto yaw = node->yaw;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory()
Route.cpp (151): return _pimpl->trajectory;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory().finish_time()
Trajectory.cpp (624): const auto& segments = _pimpl->segments;
Source of null value
Trajectory.cpp (625): return segments.size() == 0 ? nullptr : &segments.back().data.time; *** Condition evaluation: (segments.size() == 0) (assuming true)
DifferentialDrivePlanner.cpp (160): *node->route_from_parent.back().trajectory().finish_time(); *** Null value carrier: <returned value of finish_time()> -> node.operator->()->route_from_parent.back().trajectory().finish_time()
Null pointer dereferencing point
DifferentialDrivePlanner.cpp (159): const auto time = *** Null value carrier: node.operator->()->route_from_parent.back().trajectory().finish_time() |
|
+
|
159: |
"node.operator->()->route_from_parent.back().trajectory().finish_time()" may possibly be null |
CERT_C-ERR33-c-1 |
|
|
DifferentialDrivePlanner.cpp (158): const auto yaw = node->yaw;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory()
Route.cpp (151): return _pimpl->trajectory;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory().finish_time()
Trajectory.cpp (624): const auto& segments = _pimpl->segments;
Source of null value
Trajectory.cpp (625): return segments.size() == 0 ? nullptr : &segments.back().data.time; *** Condition evaluation: (segments.size() == 0) (assuming true)
DifferentialDrivePlanner.cpp (160): *node->route_from_parent.back().trajectory().finish_time(); *** Null value carrier: <returned value of finish_time()> -> node.operator->()->route_from_parent.back().trajectory().finish_time()
Null pointer dereferencing point
DifferentialDrivePlanner.cpp (159): const auto time = *** Null value carrier: node.operator->()->route_from_parent.back().trajectory().finish_time() |
|
+
|
159: |
"node.operator->()->route_from_parent.back().trajectory().finish_time()" may possibly be null |
CERT_C-EXP34-a-1 |
|
|
DifferentialDrivePlanner.cpp (158): const auto yaw = node->yaw;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory()
Route.cpp (151): return _pimpl->trajectory;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory().finish_time()
Trajectory.cpp (624): const auto& segments = _pimpl->segments;
Source of null value
Trajectory.cpp (625): return segments.size() == 0 ? nullptr : &segments.back().data.time; *** Condition evaluation: (segments.size() == 0) (assuming true)
DifferentialDrivePlanner.cpp (160): *node->route_from_parent.back().trajectory().finish_time(); *** Null value carrier: <returned value of finish_time()> -> node.operator->()->route_from_parent.back().trajectory().finish_time()
Null pointer dereferencing point
DifferentialDrivePlanner.cpp (159): const auto time = *** Null value carrier: node.operator->()->route_from_parent.back().trajectory().finish_time() |
|
+
|
159: |
"node.operator->()->route_from_parent.back().trajectory().finish_time()" may possibly be null |
CERT_C-MSC19-b-3 |
|
|
DifferentialDrivePlanner.cpp (158): const auto yaw = node->yaw;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory()
Route.cpp (151): return _pimpl->trajectory;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory().finish_time()
Trajectory.cpp (624): const auto& segments = _pimpl->segments;
Source of null value
Trajectory.cpp (625): return segments.size() == 0 ? nullptr : &segments.back().data.time; *** Condition evaluation: (segments.size() == 0) (assuming true)
DifferentialDrivePlanner.cpp (160): *node->route_from_parent.back().trajectory().finish_time(); *** Null value carrier: <returned value of finish_time()> -> node.operator->()->route_from_parent.back().trajectory().finish_time()
Null pointer dereferencing point
DifferentialDrivePlanner.cpp (159): const auto time = *** Null value carrier: node.operator->()->route_from_parent.back().trajectory().finish_time() |
|
+
|
159: |
"node.operator->()->route_from_parent.back().trajectory().finish_time()" may possibly be null |
CERT_C-POS54-c-1 |
|
|
DifferentialDrivePlanner.cpp (158): const auto yaw = node->yaw;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory()
Route.cpp (151): return _pimpl->trajectory;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory().finish_time()
Trajectory.cpp (624): const auto& segments = _pimpl->segments;
Source of null value
Trajectory.cpp (625): return segments.size() == 0 ? nullptr : &segments.back().data.time; *** Condition evaluation: (segments.size() == 0) (assuming true)
DifferentialDrivePlanner.cpp (160): *node->route_from_parent.back().trajectory().finish_time(); *** Null value carrier: <returned value of finish_time()> -> node.operator->()->route_from_parent.back().trajectory().finish_time()
Null pointer dereferencing point
DifferentialDrivePlanner.cpp (159): const auto time = *** Null value carrier: node.operator->()->route_from_parent.back().trajectory().finish_time() |
|
+
|
159: |
"node.operator->()->route_from_parent.back().trajectory().finish_time()" may possibly be null |
CERT_CPP-STR51-a-1 |
|
|
DifferentialDrivePlanner.cpp (158): const auto yaw = node->yaw;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory()
Route.cpp (151): return _pimpl->trajectory;
DifferentialDrivePlanner.cpp (160): node.operator->()->route_from_parent.back().trajectory().finish_time()
Trajectory.cpp (624): const auto& segments = _pimpl->segments;
Source of null value
Trajectory.cpp (625): return segments.size() == 0 ? nullptr : &segments.back().data.time; *** Condition evaluation: (segments.size() == 0) (assuming true)
DifferentialDrivePlanner.cpp (160): *node->route_from_parent.back().trajectory().finish_time(); *** Null value carrier: <returned value of finish_time()> -> node.operator->()->route_from_parent.back().trajectory().finish_time()
Null pointer dereferencing point
DifferentialDrivePlanner.cpp (159): const auto time = *** Null value carrier: node.operator->()->route_from_parent.back().trajectory().finish_time() |
|
|
166: |
Result of "->" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
166: |
Result of "->" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
166: |
Use parenthesis to clarify order ('/' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
173: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
173: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
173: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
182: |
Function 'reconstruct_nodes' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
227: |
Unused function's "interpolate_rotation" return value |
CERT_C-ERR33-a-1 |
|
227: |
Unused function's "interpolate_rotation" return value |
CERT_C-POS54-a-1 |
|
227: |
Unused function's "interpolate_rotation" return value |
CERT_C-EXP12-a-3 |
|
234: |
'for' statement in a function 'reconstruct_nodes' should be followed by a block |
CERT_C-EXP19-a-2 |
|
250: |
Function 'stream_trajectory' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
251: |
Parameter 'ss' is not validated before use |
CERT_C-API00-a-3 |
|
256: |
The string literal is embedded directly in the code: . t= |
CERT_C-MSC41-a-1 |
|
257: |
The string literal is embedded directly in the code: p=( |
CERT_C-MSC41-a-1 |
|
258: |
The string literal is embedded directly in the code: ) v=< |
CERT_C-MSC41-a-1 |
|
258: |
The string literal is embedded directly in the code: > --> |
CERT_C-MSC41-a-1 |
|
260: |
The string literal is embedded directly in the code: (finished) |
CERT_C-MSC41-a-1 |
|
264: |
Function 'find_dependencies' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
264: |
Value 7 is out of acceptable range: 'lower than 7' |
METRIC.NBD-3 |
|
265: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
266: |
Parameter 'candidates' is not validated before use |
CERT_C-API00-a-3 |
|
266: |
The parameter 'candidates' of function 'find_dependencies' is passed by value |
OPT-14-3 |
|
267: |
Declare parameter 'validator' as const |
CERT_C-DCL00-a-3 |
|
268: |
The parameter 'dependency_window' of function 'find_dependencies' is passed by value |
OPT-14-3 |
|
269: |
Parameter 'dependency_resolution' is not validated before use |
CERT_C-API00-a-3 |
|
269: |
The parameter 'dependency_resolution' of function 'find_dependencies' is passed by value |
OPT-14-3 |
|
282: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
282: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
282: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
286: |
The 'const rmf_traffic::agv::RouteValidator *' pointer to object type should not be implicitly converted to the integral
type 'bool'
|
CERT_C-INT36-b-3 |
|
292: |
Assert contains function-like call to 'start_time' |
CERT_C-PRE31-c-3 |
|
292: |
Assert contains function-like call to 'trajectory' |
CERT_C-PRE31-c-3 |
|
292: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
306: |
The string literal is embedded directly in the code: [rmf_traffic::agv::Planner::plan] Excessive iterating while searching
for plan dependencies. This likely indicates a bug in the RouteValidator that was provided.
|
CERT_C-MSC41-a-1 |
|
338: |
The string literal is embedded directly in the code: ------------------------------------------------- |
CERT_C-MSC41-a-1 |
|
339: |
The string literal is embedded directly in the code: [rmf_traffic::agv::Planner::plan] WARNING: |
CERT_C-MSC41-a-1 |
|
340: |
The string literal is embedded directly in the code: A rare anomaly has occurred in the planner. The Route |
CERT_C-MSC41-a-1 |
|
341: |
The string literal is embedded directly in the code: Validator has failed o recognize a specified route |
CERT_C-MSC41-a-1 |
|
342: |
The string literal is embedded directly in the code: on { |
CERT_C-MSC41-a-1 |
|
342: |
The string literal is embedded directly in the code: dependency: |
CERT_C-MSC41-a-1 |
|
343: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
344: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
344: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
345: |
The string literal is embedded directly in the code: }. These are the |
CERT_C-MSC41-a-1 |
|
346: |
The string literal is embedded directly in the code: trajectories: |
CERT_C-MSC41-a-1 |
|
348: |
The string literal is embedded directly in the code: vs |
CERT_C-MSC41-a-1 |
|
350: |
The string literal is embedded directly in the code: Please provide this information to the RMF developers |
CERT_C-MSC41-a-1 |
|
351: |
The string literal is embedded directly in the code: for debugging. |
CERT_C-MSC41-a-1 |
|
352: |
The string literal is embedded directly in the code: ------------------------------------------------- |
CERT_C-MSC41-a-1 |
|
362: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
362: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
364: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
401: |
'for' statement in a function 'find_dependencies' should be followed by a block |
CERT_C-EXP19-a-2 |
|
411: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
420: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
420: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
422: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
422: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
422: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
426: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
426: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
426: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
427: |
Implicit conversion from 'unsigned long' type to 'signed long' type in function's argument |
CERT_C-INT02-a-2 |
|
428: |
Implicit conversion from 'unsigned long' type to 'signed long' type in function's argument |
CERT_C-INT02-a-2 |
|
434: |
'for' statement in a function 'find_dependencies' should be followed by a block |
CERT_C-EXP19-a-2 |
|
443: |
Function 'reconstruct_waypoints' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
447: |
The parameter 'dependency_window' of function 'reconstruct_waypoints' is passed by value |
OPT-14-3 |
|
448: |
The parameter 'dependency_resolution' of function 'reconstruct_waypoints' is passed by value |
OPT-14-3 |
|
449: |
The parameter 'span' of function 'reconstruct_waypoints' is passed by value |
OPT-14-3 |
|
470: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
470: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
470: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
+
|
488: |
The "this->graph->waypoints" variable may be accessed out of bounds at index "*n.operator->()->waypoint.operator*()" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (486): {
DifferentialDrivePlanner.cpp (487): const Eigen::Vector2d p = n->waypoint ?
DifferentialDrivePlanner.cpp (489): n->route_from_parent.back().trajectory().back().position()
Out of bounds access point
DifferentialDrivePlanner.cpp (488): graph->waypoints[*n.operator->()->waypoint.operator*()] |
|
+
|
488: |
The "this->graph->waypoints" variable may be accessed out of bounds at index "*n.operator->()->waypoint.operator*()" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (486): {
DifferentialDrivePlanner.cpp (487): const Eigen::Vector2d p = n->waypoint ?
DifferentialDrivePlanner.cpp (489): n->route_from_parent.back().trajectory().back().position()
Out of bounds access point
DifferentialDrivePlanner.cpp (488): graph->waypoints[*n.operator->()->waypoint.operator*()] |
|
|
523: |
Use parenthesis to clarify order ('-' is the second operand of '==') |
CERT_C-EXP00-a-3 |
|
562: |
The string literal is embedded directly in the code: Failed to calculate the (time, velocity) of a midpoint moving |
CERT_C-MSC41-a-1 |
|
563: |
The string literal is embedded directly in the code: towards waypoint [ |
CERT_C-MSC41-a-1 |
|
567: |
The string literal is embedded directly in the code: undefined |
CERT_C-MSC41-a-1 |
|
568: |
The string literal is embedded directly in the code: ]. Approach lanes include: |
CERT_C-MSC41-a-1 |
|
569: |
'for' statement in a function 'reconstruct_waypoints' should be followed by a block |
CERT_C-EXP19-a-2 |
|
570: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
571: |
The string literal is embedded directly in the code: . |
CERT_C-MSC41-a-1 |
|
571: |
The string literal is embedded directly in the code: . Failed on lane |
CERT_C-MSC41-a-1 |
|
593: |
The string literal is embedded directly in the code: No candidates were produced for the node! |
CERT_C-MSC41-a-1 |
|
610: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
610: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
610: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
621: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
650: |
Function 'find_start' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
652: |
'while' statement in a function 'find_start' should be followed by a block |
CERT_C-EXP19-a-2 |
|
659: |
The string literal is embedded directly in the code: [rmf_traffic::agv::Planner::plan] The root node of a solved plan is missing
its Start information. This should not happen. Please report this critical bug to the maintainers of rmf_traffic.
|
CERT_C-MSC41-a-1 |
|
724: |
The parameter 'entry_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
725: |
The parameter 'waypoint_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
726: |
The parameter 'approach_lanes_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
727: |
The parameter 'position_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
728: |
Declare parameter 'yaw_' as const |
CERT_C-DCL00-a-3 |
|
729: |
The parameter 'time_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
730: |
Declare parameter 'remaining_cost_estimate_' as const |
CERT_C-DCL00-a-3 |
|
731: |
The parameter 'route_from_parent_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
732: |
The parameter 'event_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
733: |
Declare parameter 'current_cost_' as const |
CERT_C-DCL00-a-3 |
|
734: |
The parameter 'start_' of function 'SearchNode' is passed by value |
OPT-14-3 |
|
749: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
749: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
839: |
Declare parameter 'queue' as const |
CERT_C-DCL00-a-3 |
|
839: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
845: |
Use parenthesis to clarify order ('+' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
892: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
892: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
+
|
896: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "target_waypoint_index",
which may be greater or equal to the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (892): void expand_start(const SearchNodePtr& top, SearchQueue& queue) const
DifferentialDrivePlanner.cpp (894): const auto& start = top->start.value();
DifferentialDrivePlanner.cpp (895): const std::size_t target_waypoint_index = start.waypoint();
Planner.cpp (386): return _pimpl->waypoint;
DifferentialDrivePlanner.cpp (896): _supergraph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (896): const auto& wp = _supergraph->original().waypoints[target_waypoint_index]; |
|
+
|
896: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "target_waypoint_index",
which may be greater or equal to the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (892): void expand_start(const SearchNodePtr& top, SearchQueue& queue) const
DifferentialDrivePlanner.cpp (894): const auto& start = top->start.value();
DifferentialDrivePlanner.cpp (895): const std::size_t target_waypoint_index = start.waypoint();
Planner.cpp (386): return _pimpl->waypoint;
DifferentialDrivePlanner.cpp (896): _supergraph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (896): const auto& wp = _supergraph->original().waypoints[target_waypoint_index]; |
|
|
900: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
900: |
Assert contains function-like call to 'location' |
CERT_C-PRE31-c-3 |
|
900: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
926: |
Assert contains function-like call to 'exit' |
CERT_C-PRE31-c-3 |
|
926: |
Assert contains function-like call to 'waypoint_index' |
CERT_C-PRE31-c-3 |
|
926: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
953: |
Function 'is_valid' called in the right-hand operand of a logical '&&' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
953: |
The 'const rmf_traffic::agv::RouteValidator *' pointer to object type should not be implicitly converted to the integral
type 'bool'
|
CERT_C-INT36-b-3 |
|
959: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
959: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
959: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
970: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
970: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
970: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
971: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
971: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
971: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
971: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
971: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
971: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
973: |
Identifier 'all_valid' is hiding other identifier with the same name declared in outer scope |
CERT_C-DCL01-b-3 |
|
977: |
Function 'is_valid' called in the right-hand operand of a logical '&&' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
977: |
The 'const rmf_traffic::agv::RouteValidator *' pointer to object type should not be implicitly converted to the integral
type 'bool'
|
CERT_C-INT36-b-3 |
|
983: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
983: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
983: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1043: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1043: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1043: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1044: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1044: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1044: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1050: |
Function 'is_valid' called in the right-hand operand of a logical '&&' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
1050: |
The 'const rmf_traffic::agv::RouteValidator *' pointer to object type should not be implicitly converted to the integral
type 'bool'
|
CERT_C-INT36-b-3 |
|
1053: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1053: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1053: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1075: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
1076: |
Parameter 'hold_time' is not validated before use |
CERT_C-API00-a-3 |
|
1076: |
The parameter 'hold_time' of function 'expand_hold' is passed by value |
OPT-14-3 |
|
1077: |
Parameter 'cost_factor' is not validated before use |
CERT_C-API00-a-3 |
+
|
1080: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "wp_index", which
may be greater or equal to the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (1074): SearchNodePtr expand_hold(
DifferentialDrivePlanner.cpp (1079): const std::size_t wp_index = top->waypoint.value();
DifferentialDrivePlanner.cpp (1080): _supergraph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (1080): _supergraph.operator->().original()->waypoints[wp_index] |
|
+
|
1080: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "wp_index", which
may be greater or equal to the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (1074): SearchNodePtr expand_hold(
DifferentialDrivePlanner.cpp (1079): const std::size_t wp_index = top->waypoint.value();
DifferentialDrivePlanner.cpp (1080): _supergraph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (1080): _supergraph.operator->().original()->waypoints[wp_index] |
|
|
1095: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1095: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1095: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1096: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1096: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1096: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1122: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
1131: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
1133: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
+
|
1135: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "this->_goal_waypoint" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (1131): SearchNodePtr rotate_to_goal(const SearchNodePtr& top) const
DifferentialDrivePlanner.cpp (1135): _supergraph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (1135): _supergraph->original().waypoints[_goal_waypoint].get_map_name(); |
|
+
|
1135: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "this->_goal_waypoint" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (1131): SearchNodePtr rotate_to_goal(const SearchNodePtr& top) const
DifferentialDrivePlanner.cpp (1135): _supergraph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (1135): _supergraph->original().waypoints[_goal_waypoint].get_map_name(); |
|
|
1145: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1145: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1145: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1147: |
Unused function's "interpolate_rotation" return value |
CERT_C-ERR33-a-1 |
|
1147: |
Unused function's "interpolate_rotation" return value |
CERT_C-POS54-a-1 |
|
1147: |
Unused function's "interpolate_rotation" return value |
CERT_C-EXP12-a-3 |
|
1151: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1151: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1156: |
Function 'is_valid' called in the right-hand operand of a logical '&&' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
1156: |
The 'const rmf_traffic::agv::RouteValidator *' pointer to object type should not be implicitly converted to the integral
type 'bool'
|
CERT_C-INT36-b-3 |
|
1176: |
Parameter 'parent' is not validated before use |
CERT_C-API00-a-3 |
|
1186: |
Declare local variable 'time_it' as const |
CERT_C-DCL00-a-3 |
|
1204: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
1205: |
Parameter 'traversal' is not validated before use |
CERT_C-API00-a-3 |
|
1206: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
+
|
1209: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "initial_waypoint_index",
which may be greater or equal to the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (1203): void expand_traversal(
DifferentialDrivePlanner.cpp (1208): const auto initial_waypoint_index = top->waypoint.value();
DifferentialDrivePlanner.cpp (1210): _supergraph->original().waypoints[initial_waypoint_index];
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (1209): const auto& initial_waypoint = |
|
+
|
1209: |
The "this->_supergraph.operator->().original()->waypoints" variable may be accessed out of bounds at index "initial_waypoint_index",
which may be greater or equal to the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
DifferentialDrivePlanner.cpp (1203): void expand_traversal(
DifferentialDrivePlanner.cpp (1208): const auto initial_waypoint_index = top->waypoint.value();
DifferentialDrivePlanner.cpp (1210): _supergraph->original().waypoints[initial_waypoint_index];
Supergraph.cpp (697): return _original;
Out of bounds access point
DifferentialDrivePlanner.cpp (1209): const auto& initial_waypoint = |
|
|
1241: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
1243: |
Declare local variable 'start_time' as const |
CERT_C-DCL00-a-3 |
|
1248: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1248: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1248: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1259: |
Unused function's "interpolate_rotation" return value |
CERT_C-ERR33-a-1 |
|
1259: |
Unused function's "interpolate_rotation" return value |
CERT_C-POS54-a-1 |
|
1259: |
Unused function's "interpolate_rotation" return value |
CERT_C-EXP12-a-3 |
|
1285: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1285: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1285: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1293: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1293: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1293: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1357: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1357: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1357: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1366: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1366: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1366: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1399: |
Use parenthesis to clarify order ('>=' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
1403: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
1403: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
1432: |
'for' statement in a function 'expand_traversal' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1433: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1433: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1433: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1437: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1437: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1437: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1465: |
Use parenthesis to clarify order ('>=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
1494: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
1495: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
1514: |
Use parenthesis to clarify order ('>=' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
1542: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1592: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
1605: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
1605: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1614: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
1614: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1637: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
1637: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1645: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
1659: |
'for' statement in a function 'expand' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1670: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
1671: |
Parameter 'hold_time' is not validated before use |
CERT_C-API00-a-3 |
|
1685: |
Declare local variable 'differential' as const |
CERT_C-DCL00-a-3 |
|
1686: |
Declare local variable 'constraint' as const |
CERT_C-DCL00-a-3 |
|
1747: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1747: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1747: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1750: |
Unused function's "interpolate_rotation" return value |
CERT_C-ERR33-a-1 |
|
1750: |
Unused function's "interpolate_rotation" return value |
CERT_C-POS54-a-1 |
|
1750: |
Unused function's "interpolate_rotation" return value |
CERT_C-EXP12-a-3 |
|
1759: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1759: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1759: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1765: |
Parameter 'start' is not validated before use |
CERT_C-API00-a-3 |
|
1808: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
1828: |
Declare local variable 'exit_event' as const |
CERT_C-DCL00-a-3 |
|
1837: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
1837: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
1837: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
1837: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1837: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1837: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1863: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
1863: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
1863: |
Implicit conversion from integral to floating type in function's argument |
CERT_C-EXP39-a-3 |
|
1863: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1863: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1863: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1866: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
1866: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1890: |
Parameter 'r' is not validated before use |
CERT_C-API00-a-3 |
|
1902: |
The parameter 'waypoint_index' of function 'is_holding_point' is passed by value |
OPT-14-3 |
|
1912: |
Parameter 'max_span' is not validated before use |
CERT_C-API00-a-3 |
|
1912: |
The parameter 'max_span' of function 'rollout' is passed by value |
OPT-14-3 |
|
1914: |
The parameter 'max_rollouts' of function 'rollout' is passed by value |
OPT-14-3 |
|
1955: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1955: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1955: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1967: |
Declare local variable 'route_map' as const |
CERT_C-DCL00-a-3 |
|
1970: |
Declare local variable 'temp_blocked_nodes' as const |
CERT_C-DCL00-a-3 |
|
1991: |
Use parenthesis to clarify order ('<=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
2000: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
2000: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
2000: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
+
|
2015: |
Value of "_" is never used |
CERT_C-DCL22-a-3 |
|
|
Point where value is declared
Point where value is declared
DifferentialDrivePlanner.cpp (2015): get(...) |
|
|
2022: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
2022: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
2023: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
2023: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
2023: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
2030: |
Declare parameter 'internal' as const |
CERT_C-DCL00-a-3 |
|
2033: |
The parameter 'heuristic' of function 'ScheduledDifferentialDriveExpander' is passed by value |
OPT-14-3 |
|
2036: |
Declare parameter 'traversal_cost_per_meter' as const |
CERT_C-DCL00-a-3 |
|
2037: |
Do not perform a cast between a pointer to 'InternalState' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
2037: |
Do not perform a cast between a pointer to 'InternalState' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
2081: |
Parameter 'from' is not validated before use |
CERT_C-API00-a-3 |
|
2084: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
2089: |
Declare parameter 'from' as const |
CERT_C-DCL00-a-3 |
|
2089: |
Parameter 'from' is not validated before use |
CERT_C-API00-a-3 |
|
2115: |
Declare local variable 'new_debug_node' as const |
CERT_C-DCL00-a-3 |
|
2125: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
2148: |
The parameter 'starts' of function 'Debugger' is passed by value |
OPT-14-3 |
|
2149: |
The parameter 'goal' of function 'Debugger' is passed by value |
OPT-14-3 |
|
2150: |
The parameter 'options' of function 'Debugger' is passed by value |
OPT-14-3 |
|
2159: |
Parameter 'supergraph' is not validated before use |
CERT_C-API00-a-3 |
|
2160: |
Parameter 'cache' is not validated before use |
CERT_C-API00-a-3 |
|
2160: |
The parameter 'cache' of function 'step' is passed by value |
OPT-14-3 |
|
2165: |
Declare local variable 'expander' as const |
CERT_C-DCL00-a-3 |
|
2189: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
2190: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
2190: |
The parameter 'goal' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
2191: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
2191: |
The parameter 'options' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
2208: |
Parameter 'input_debugger' is not validated before use |
CERT_C-API00-a-3 |
|
2215: |
Declare local variable 'top' as const |
CERT_C-DCL00-a-3 |
|
2241: |
Parameter 'solution' is not validated before use |
CERT_C-API00-a-3 |
|
2263: |
Parameter 'traj' is not validated before use |
CERT_C-API00-a-3 |
|
2299: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
2299: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
2299: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
2299: |
The parameter 'time' of function '_get_hint_if_not_redundant' is passed by value |
OPT-14-3 |
|
2300: |
Parameter 'time_set' is not validated before use |
CERT_C-API00-a-3 |
|
2349: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
2349: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
2349: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
2353: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
2353: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
2357: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
2357: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
2357: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
2380: |
The parameter 'config' of function 'DifferentialDrivePlanner' is passed by value |
OPT-14-3 |
|
2394: |
Function 'initiate' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
2395: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
2396: |
Parameter 'input_goal' is not validated before use |
CERT_C-API00-a-3 |
|
2396: |
The parameter 'input_goal' of function 'initiate' is passed by value |
OPT-14-3 |
|
2397: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
2397: |
The parameter 'options' of function 'initiate' is passed by value |
OPT-14-3 |
|
2450: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
2482: |
Parameter 'span' is not validated before use |
CERT_C-API00-a-3 |
|
2482: |
The parameter 'span' of function 'rollout' is passed by value |
OPT-14-3 |
|
2483: |
Parameter 'nodes' is not validated before use |
CERT_C-API00-a-3 |
|
2484: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
2485: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
2486: |
Declare parameter 'max_rollouts' as const |
CERT_C-DCL00-a-3 |
|
2486: |
Parameter 'max_rollouts' is not validated before use |
CERT_C-API00-a-3 |
|
2486: |
The parameter 'max_rollouts' of function 'rollout' is passed by value |
OPT-14-3 |
|
2492: |
Declare local variable 'expander' as const |
CERT_C-DCL00-a-3 |
|
2519: |
Parameter 'starts' is not validated before use |
CERT_C-API00-a-3 |
|
2520: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
2520: |
The parameter 'goal' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
2521: |
Parameter 'options' is not validated before use |
CERT_C-API00-a-3 |
|
2521: |
The parameter 'options' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
2527: |
Declare local variable 'expander' as const |
CERT_C-DCL00-a-3 |
|
2547: |
Declare parameter 'input_debugger' as const |
CERT_C-DCL00-a-3 |
|
2547: |
Parameter 'input_debugger' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/DifferentialDrivePlanner.hpp |
|
34: |
Constructor 'DifferentialDrivePlanner' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
34: |
The parameter 'config' of function 'DifferentialDrivePlanner' is passed by value |
OPT-14-3 |
|
36: |
Function 'initiate' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
38: |
The parameter 'goal' of function 'initiate' is passed by value |
OPT-14-3 |
|
39: |
The parameter 'options' of function 'initiate' is passed by value |
OPT-14-3 |
|
44: |
The parameter 'span' of function 'rollout' is passed by value |
OPT-14-3 |
|
48: |
The parameter 'max_rollouts' of function 'rollout' is passed by value |
OPT-14-3 |
|
54: |
The parameter 'goal' of function 'debug_begin' is passed by value |
OPT-14-3 |
|
55: |
The parameter 'options' of function 'debug_begin' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/EuclideanHeuristic.cpp |
|
64: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
64: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
160: |
Variable "entry_event" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
166: |
Variable "exit_event" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
192: |
Declare parameter 'goal' as const |
CERT_C-DCL00-a-3 |
|
193: |
The parameter 'goal_p' of function 'EuclideanExpander' is passed by value |
OPT-14-3 |
|
195: |
Declare parameter 'max_speed' as const |
CERT_C-DCL00-a-3 |
|
220: |
Declare parameter 'goal' as const |
CERT_C-DCL00-a-3 |
|
220: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
|
221: |
Declare parameter 'max_speed' as const |
CERT_C-DCL00-a-3 |
|
234: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
235: |
Parameter 'old_items' is not validated before use |
CERT_C-API00-a-3 |
|
236: |
Parameter 'new_items' is not validated before use |
CERT_C-API00-a-3 |
|
272: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
272: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
272: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
283: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
283: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
283: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
301: |
Parameter 'goal' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/EuclideanHeuristic.hpp |
|
68: |
Constructor 'EuclideanHeuristicFactory' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/MinimalTravelHeuristic.cpp |
|
40: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
41: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
42: |
Parameter 'visited' is not validated before use |
CERT_C-API00-a-3 |
|
74: |
Declare parameter 'waypoint_index' as const |
CERT_C-DCL00-a-3 |
|
74: |
Parameter 'waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
|
75: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
88: |
Declare parameter 'new_target' as const |
CERT_C-DCL00-a-3 |
|
89: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
107: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
116: |
Declare parameter 'target' as const |
CERT_C-DCL00-a-3 |
|
127: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
128: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
129: |
Parameter 'visited' is not validated before use |
CERT_C-API00-a-3 |
|
161: |
Declare parameter 'waypoint_index' as const |
CERT_C-DCL00-a-3 |
|
161: |
Parameter 'waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
|
162: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
175: |
Declare parameter 'new_target' as const |
CERT_C-DCL00-a-3 |
|
176: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
194: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/MinimalTravelHeuristic.hpp |
|
71: |
Class 'ForwardExpander' has virtual functions without a virtual destructor |
OOP-23-2 |
|
123: |
Parameter 'node' is not validated before use |
CERT_C-API00-a-3 |
|
128: |
Parameter 'node' is not validated before use |
CERT_C-API00-a-3 |
|
134: |
Class 'ReverseExpander' has virtual functions without a virtual destructor |
OOP-23-2 |
|
205: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
205: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
205: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
220: |
Constructor 'MinimalTravelHeuristic' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
230: |
Parameter 'a' is not validated before use |
CERT_C-API00-a-3 |
|
231: |
Parameter 'b' is not validated before use |
CERT_C-API00-a-3 |
|
243: |
Parameter 'b' is not validated before use |
CERT_C-API00-a-3 |
|
244: |
Parameter 'a' is not validated before use |
CERT_C-API00-a-3 |
|
251: |
Declare parameter 'current_node' as const |
CERT_C-DCL00-a-3 |
|
251: |
Parameter 'current_node' is not validated before use |
CERT_C-API00-a-3 |
|
252: |
Parameter 'tree' is not validated before use |
CERT_C-API00-a-3 |
|
259: |
Declare parameter 'current_node' as const |
CERT_C-DCL00-a-3 |
|
259: |
Parameter 'current_node' is not validated before use |
CERT_C-API00-a-3 |
|
260: |
Parameter 'tree' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/ShortestPathHeuristic.cpp |
|
31: |
Function 'expand_lane' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
+
|
39: |
The "g->waypoints" variable may be accessed out of bounds at index "top.operator->()->waypoint" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (31): void expand_lane(
Out of bounds access point
ShortestPathHeuristic.cpp (39): const auto& wp_0 = g.waypoints[top->waypoint]; |
|
+
|
39: |
The "g->waypoints" variable may be accessed out of bounds at index "top.operator->()->waypoint" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (31): void expand_lane(
Out of bounds access point
ShortestPathHeuristic.cpp (39): const auto& wp_0 = g.waypoints[top->waypoint]; |
|
+
|
43: |
The "g->lanes" variable may be accessed out of bounds at index "l", which may be greater or equal to the container size |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (31): void expand_lane(
ShortestPathHeuristic.cpp (39): const auto& wp_0 = g.waypoints[top->waypoint];
ShortestPathHeuristic.cpp (40): const auto& p_0 = wp_0.get_location();
Graph.cpp (81): return _pimpl->location;
ShortestPathHeuristic.cpp (41): for (const auto l : lanes) *** Loop condition evaluation: operator!=(...) (assuming true) *** Entering the loop
Out of bounds access point
ShortestPathHeuristic.cpp (43): const auto& next_lane = g.lanes[l]; |
|
+
|
43: |
The "g->lanes" variable may be accessed out of bounds at index "l", which may be greater or equal to the container size |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (31): void expand_lane(
ShortestPathHeuristic.cpp (39): const auto& wp_0 = g.waypoints[top->waypoint];
ShortestPathHeuristic.cpp (40): const auto& p_0 = wp_0.get_location();
Graph.cpp (81): return _pimpl->location;
ShortestPathHeuristic.cpp (41): for (const auto l : lanes) *** Loop condition evaluation: operator!=(...) (assuming true) *** Entering the loop
Out of bounds access point
ShortestPathHeuristic.cpp (43): const auto& next_lane = g.lanes[l]; |
|
|
90: |
Parameter 'lane' is not validated before use |
CERT_C-API00-a-3 |
|
98: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
99: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
100: |
Parameter 'visited' is not validated before use |
CERT_C-API00-a-3 |
+
|
114: |
The "g->lanes_from" variable may be accessed out of bounds at index "top.operator->()->waypoint" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (97): ShortestPath::ForwardNodePtr ShortestPath::ForwardExpander::expand(
ShortestPathHeuristic.cpp (102): const auto was_inserted = visited.insert({top->waypoint, top}).second;
ShortestPathHeuristic.cpp (103): if (!was_inserted) *** Condition evaluation: !was_inserted (assuming false)
ShortestPathHeuristic.cpp (111): const auto& g = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
ShortestPathHeuristic.cpp (114): g.lanes_from[top->waypoint]); |
|
+
|
114: |
The "g->lanes_from" variable may be accessed out of bounds at index "top.operator->()->waypoint" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (97): ShortestPath::ForwardNodePtr ShortestPath::ForwardExpander::expand(
ShortestPathHeuristic.cpp (102): const auto was_inserted = visited.insert({top->waypoint, top}).second;
ShortestPathHeuristic.cpp (103): if (!was_inserted) *** Condition evaluation: !was_inserted (assuming false)
ShortestPathHeuristic.cpp (111): const auto& g = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
ShortestPathHeuristic.cpp (114): g.lanes_from[top->waypoint]); |
|
|
121: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
121: |
Parameter 'waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
159: |
Parameter 'lane' is not validated before use |
CERT_C-API00-a-3 |
|
167: |
Parameter 'top' is not validated before use |
CERT_C-API00-a-3 |
|
168: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
169: |
Parameter 'visited' is not validated before use |
CERT_C-API00-a-3 |
+
|
183: |
The "g->lanes_into" variable may be accessed out of bounds at index "top.operator->()->waypoint" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (166): ShortestPath::ReverseNodePtr ShortestPath::ReverseExpander::expand(
ShortestPathHeuristic.cpp (171): const auto was_inserted = visited.insert({top->waypoint, top}).second;
ShortestPathHeuristic.cpp (172): if (!was_inserted) *** Condition evaluation: !was_inserted (assuming false)
ShortestPathHeuristic.cpp (180): const auto& g = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
ShortestPathHeuristic.cpp (183): g.lanes_into[top->waypoint]); |
|
+
|
183: |
The "g->lanes_into" variable may be accessed out of bounds at index "top.operator->()->waypoint" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
ShortestPathHeuristic.cpp (166): ShortestPath::ReverseNodePtr ShortestPath::ReverseExpander::expand(
ShortestPathHeuristic.cpp (171): const auto was_inserted = visited.insert({top->waypoint, top}).second;
ShortestPathHeuristic.cpp (172): if (!was_inserted) *** Condition evaluation: !was_inserted (assuming false)
ShortestPathHeuristic.cpp (180): const auto& g = _graph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
ShortestPathHeuristic.cpp (183): g.lanes_into[top->waypoint]); |
|
|
190: |
Parameter 'waypoint' is not validated before use |
CERT_C-API00-a-3 |
|
191: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
|
210: |
Parameter 'frontier' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/ShortestPathHeuristic.hpp |
|
57: |
Class 'ForwardExpander' has virtual functions without a virtual destructor |
OOP-23-2 |
|
99: |
Parameter 'node' is not validated before use |
CERT_C-API00-a-3 |
|
104: |
Parameter 'node' is not validated before use |
CERT_C-API00-a-3 |
|
110: |
Class 'ReverseExpander' has virtual functions without a virtual destructor |
OOP-23-2 |
|
171: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
171: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
171: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
186: |
Constructor 'ShortestPathHeuristic' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
193: |
Parameter 'a' is not validated before use |
CERT_C-API00-a-3 |
|
194: |
Parameter 'b' is not validated before use |
CERT_C-API00-a-3 |
|
201: |
Parameter 'b' is not validated before use |
CERT_C-API00-a-3 |
|
202: |
Parameter 'a' is not validated before use |
CERT_C-API00-a-3 |
|
209: |
Declare parameter 'current_node' as const |
CERT_C-DCL00-a-3 |
|
209: |
Parameter 'current_node' is not validated before use |
CERT_C-API00-a-3 |
|
210: |
Parameter 'tree' is not validated before use |
CERT_C-API00-a-3 |
|
217: |
Declare parameter 'current_node' as const |
CERT_C-DCL00-a-3 |
|
217: |
Parameter 'current_node' is not validated before use |
CERT_C-API00-a-3 |
|
218: |
Parameter 'tree' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/Supergraph.cpp |
|
38: |
Parameter 'original' is not validated before use |
CERT_C-API00-a-3 |
+
|
51: |
The "original->lanes" variable may be accessed out of bounds at index "l", which may be greater or equal to the container
size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
Supergraph.cpp (37): Supergraph::FloorChangeMap find_floor_changes(
Supergraph.cpp (40): Supergraph::FloorChangeMap all_floor_changes;
Supergraph.cpp (44): for (std::size_t i = 0; i < original.waypoints.size(); ++i) *** Loop condition evaluation: (i < original->waypoints.size()) (assuming true) *** Entering the loop
Supergraph.cpp (46): const auto& initial_map_name = original.waypoints[i].get_map_name();
Graph.cpp (68): return _pimpl->map_name;
Supergraph.cpp (47): auto& floor_changes = all_floor_changes[initial_map_name];
Supergraph.cpp (49): for (const auto l : original.lanes_from[i]) *** Loop condition evaluation: operator!=(...) (assuming true) *** Entering the loop
Out of bounds access point
Supergraph.cpp (51): const auto& lane = original.lanes[l]; |
|
+
|
51: |
The "original->lanes" variable may be accessed out of bounds at index "l", which may be greater or equal to the container
size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
Supergraph.cpp (37): Supergraph::FloorChangeMap find_floor_changes(
Supergraph.cpp (40): Supergraph::FloorChangeMap all_floor_changes;
Supergraph.cpp (44): for (std::size_t i = 0; i < original.waypoints.size(); ++i) *** Loop condition evaluation: (i < original->waypoints.size()) (assuming true) *** Entering the loop
Supergraph.cpp (46): const auto& initial_map_name = original.waypoints[i].get_map_name();
Graph.cpp (68): return _pimpl->map_name;
Supergraph.cpp (47): auto& floor_changes = all_floor_changes[initial_map_name];
Supergraph.cpp (49): for (const auto l : original.lanes_from[i]) *** Loop condition evaluation: operator!=(...) (assuming true) *** Entering the loop
Out of bounds access point
Supergraph.cpp (51): const auto& lane = original.lanes[l]; |
|
|
52: |
Reserved name 'exit' used |
CERT_CPP-DCL51-e-3 |
|
52: |
Reserved name 'exit' used |
CERT_CPP-DCL51-f-3 |
|
64: |
Parameter 'forward' is not validated before use |
CERT_C-API00-a-3 |
+
|
66: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Supergraph.cpp (66): atan2(...)
The value of errno should be checked by this point
Supergraph.cpp (66): return Eigen::Rotation2Dd(std::atan2(forward[1], forward[0])); |
|
+
|
66: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Supergraph.cpp (66): atan2(...)
The value of errno should be checked by this point
Supergraph.cpp (66): return Eigen::Rotation2Dd(std::atan2(forward[1], forward[0])); |
|
+
|
66: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Supergraph.cpp (63): Eigen::Rotation2Dd compute_forward_offset(
The call to an errno-setting-function
Supergraph.cpp (66): atan2(...) |
|
+
|
66: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Supergraph.cpp (63): Eigen::Rotation2Dd compute_forward_offset(
The call to an errno-setting-function
Supergraph.cpp (66): atan2(...) |
|
|
66: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
66: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
112: |
Parameter 'node' is not validated before use |
CERT_C-API00-a-3 |
|
113: |
Parameter 'kin' is not validated before use |
CERT_C-API00-a-3 |
|
114: |
Parameter 'output' is not validated before use |
CERT_C-API00-a-3 |
|
117: |
Assert contains function-like call to 'valid_traversal' |
CERT_C-PRE31-c-3 |
|
117: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
158: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
160: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
162: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
209: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
209: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
219: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
232: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
232: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
232: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
246: |
Declare parameter 'parent' as const |
CERT_C-DCL00-a-3 |
|
248: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
|
251: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
252: |
Parameter 'output' is not validated before use |
CERT_C-API00-a-3 |
+
|
261: |
The "graph->lanes" variable may be accessed out of bounds at index "lane_index", which may be greater or equal to the container
size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
Supergraph.cpp (245): void perform_traversal(
Supergraph.cpp (255): closures.is_closed(...)
LaneClosure.cpp (145): _pimpl.operator->()->contains(...)
LaneClosure.cpp (32): const std::size_t key = _get_key(value);
LaneClosure.cpp (119): return value/field_size;
LaneClosure.cpp (33): const auto bucket_it = _bitfields.find(key);
LaneClosure.cpp (34): if (bucket_it == _bitfields.end()) *** Condition evaluation: operator==(...) (assuming true)
LaneClosure.cpp (35): return false;
LaneClosure.cpp (145): return _pimpl->contains(lane);
Supergraph.cpp (255): if (closures.is_closed(lane_index)) *** Condition evaluation: closures.is_closed(...) (false)
Out of bounds access point
Supergraph.cpp (261): const auto& lane = graph.lanes[lane_index]; |
|
+
|
261: |
The "graph->lanes" variable may be accessed out of bounds at index "lane_index", which may be greater or equal to the container
size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
Supergraph.cpp (245): void perform_traversal(
Supergraph.cpp (255): closures.is_closed(...)
LaneClosure.cpp (145): _pimpl.operator->()->contains(...)
LaneClosure.cpp (32): const std::size_t key = _get_key(value);
LaneClosure.cpp (119): return value/field_size;
LaneClosure.cpp (33): const auto bucket_it = _bitfields.find(key);
LaneClosure.cpp (34): if (bucket_it == _bitfields.end()) *** Condition evaluation: operator==(...) (assuming true)
LaneClosure.cpp (35): return false;
LaneClosure.cpp (145): return _pimpl->contains(lane);
Supergraph.cpp (255): if (closures.is_closed(lane_index)) *** Condition evaluation: closures.is_closed(...) (false)
Out of bounds access point
Supergraph.cpp (261): const auto& lane = graph.lanes[lane_index]; |
|
|
263: |
Reserved name 'exit' used |
CERT_CPP-DCL51-e-3 |
|
263: |
Reserved name 'exit' used |
CERT_CPP-DCL51-f-3 |
|
321: |
Declare local variable 'entry_event' as const |
CERT_C-DCL00-a-3 |
|
332: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
362: |
Declare local variable 'entry_constraint' as const |
CERT_C-DCL00-a-3 |
|
367: |
Declare local variable 'exit_constraint' as const |
CERT_C-DCL00-a-3 |
|
372: |
The 'const rmf_traffic::agv::planning::<unnamed>::TraversalNode *' pointer to object type should not be implicitly converted
to the integral type 'bool'
|
CERT_C-INT36-b-3 |
|
396: |
Declare local variable 'exit_event' as const |
CERT_C-DCL00-a-3 |
|
416: |
Parameter 'parent' is not validated before use |
CERT_C-API00-a-3 |
|
417: |
Parameter 'lane_index' is not validated before use |
CERT_C-API00-a-3 |
|
418: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
|
419: |
Parameter 'closures' is not validated before use |
CERT_C-API00-a-3 |
|
420: |
Parameter 'kin' is not validated before use |
CERT_C-API00-a-3 |
|
421: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
422: |
Parameter 'output' is not validated before use |
CERT_C-API00-a-3 |
|
423: |
Parameter 'visited' is not validated before use |
CERT_C-API00-a-3 |
|
431: |
Parameter 'lane_index' is not validated before use |
CERT_C-API00-a-3 |
|
432: |
Parameter 'graph' is not validated before use |
CERT_C-API00-a-3 |
|
433: |
Parameter 'closures' is not validated before use |
CERT_C-API00-a-3 |
|
434: |
Parameter 'kin' is not validated before use |
CERT_C-API00-a-3 |
|
435: |
Parameter 'queue' is not validated before use |
CERT_C-API00-a-3 |
|
436: |
Parameter 'output' is not validated before use |
CERT_C-API00-a-3 |
|
437: |
Parameter 'visited' is not validated before use |
CERT_C-API00-a-3 |
|
447: |
Parameter 'traversal_cost_per_meter' is not validated before use |
CERT_C-API00-a-3 |
|
452: |
Local variable 'distance_cost' declared in function 'calculate_cost' is unnecessary |
CERT_C-MSC13-a-3 |
|
465: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
465: |
The parameter 'p' of function 'orientation_constraint_satisfied' is passed by value |
OPT-14-3 |
|
466: |
Parameter 'orientation' is not validated before use |
CERT_C-API00-a-3 |
|
467: |
Parameter 'course_vector' is not validated before use |
CERT_C-API00-a-3 |
|
467: |
The parameter 'course_vector' of function 'orientation_constraint_satisfied' is passed by value |
OPT-14-3 |
|
468: |
Declare parameter 'constraint' as const |
CERT_C-DCL00-a-3 |
|
475: |
Unused function's "apply" return value |
CERT_C-ERR33-a-1 |
|
475: |
Unused function's "apply" return value |
CERT_C-POS54-a-1 |
|
475: |
Unused function's "apply" return value |
CERT_C-EXP12-a-3 |
|
484: |
The 'Rotation2D' constructor called during the creation of the 'R_pi' object should be declared as exception-safe |
CERT_CPP-ERR58-a-2 |
|
484: |
The 'Rotation2D' constructor called during the creation of the 'R_pi' object should be declared as exception-safe |
CERT_CPP-ERR50-f-3 |
|
500: |
Parameter 'course_vector' is not validated before use |
CERT_C-API00-a-3 |
+
|
505: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
The call to an errno-setting-function
Supergraph.cpp (505): atan2(...)
The value of errno should be checked by this point
Supergraph.cpp (505): std::atan2(course_vector[1], course_vector[0])); |
|
+
|
505: |
Errno is not tested against 0 after the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
The call to an errno-setting-function
Supergraph.cpp (505): atan2(...)
The value of errno should be checked by this point
Supergraph.cpp (505): std::atan2(course_vector[1], course_vector[0])); |
|
+
|
505: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR30-a-2 |
|
|
Start of the path
Supergraph.cpp (499): DifferentialDriveConstraint::get_orientations(
Supergraph.cpp (502): std::array<std::optional<double>, 2> orientations;
Supergraph.cpp (504): const Eigen::Rotation2Dd R_c(
The call to an errno-setting-function
Supergraph.cpp (505): atan2(...) |
|
+
|
505: |
Errno may not be set to 0 before the call to the errno-setting-function "atan2" |
CERT_C-ERR32-a-3 |
|
|
Start of the path
Supergraph.cpp (499): DifferentialDriveConstraint::get_orientations(
Supergraph.cpp (502): std::array<std::optional<double>, 2> orientations;
Supergraph.cpp (504): const Eigen::Rotation2Dd R_c(
The call to an errno-setting-function
Supergraph.cpp (505): atan2(...) |
|
|
505: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM07-a-2 |
|
505: |
Result of "[]" passed to library function "atan2" without being checked |
CERT_C-MEM04-a-2 |
|
524: |
Declare parameter 'traversal_cost_per_meter_' as const |
CERT_C-DCL00-a-3 |
|
529: |
Declare local variable 'diff_drive' as const |
CERT_C-DCL00-a-3 |
|
529: |
Variable "diff_drive" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
550: |
Parameter 'new_items' is not validated before use |
CERT_C-API00-a-3 |
|
565: |
The string literal is embedded directly in the code: [rmf_traffic::agv::planning::TraversalGenerator::generate] Supergraph
died while a TraversalCache was still being used. Please report this critical bug to the maintainers of rmf_traffic.
|
CERT_C-MSC41-a-1 |
|
577: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
577: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
577: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
579: |
'for' statement in a function 'generate' should be followed by a block |
CERT_C-EXP19-a-2 |
|
584: |
Declare local variable 'top' as const |
CERT_C-DCL00-a-3 |
|
596: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
596: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
596: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
613: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
615: |
Parameter 'new_items' is not validated before use |
CERT_C-API00-a-3 |
|
655: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
655: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
655: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
661: |
Parameter 'original' is not validated before use |
CERT_C-API00-a-3 |
|
661: |
The parameter 'original' of function 'make' is passed by value |
OPT-14-3 |
|
662: |
Parameter 'traits' is not validated before use |
CERT_C-API00-a-3 |
|
662: |
The parameter 'traits' of function 'make' is passed by value |
OPT-14-3 |
|
663: |
Parameter 'lane_closures' is not validated before use |
CERT_C-API00-a-3 |
|
663: |
The parameter 'lane_closures' of function 'make' is passed by value |
OPT-14-3 |
|
664: |
Parameter 'interpolate' is not validated before use |
CERT_C-API00-a-3 |
|
665: |
Parameter 'traversal_cost_per_meter' is not validated before use |
CERT_C-API00-a-3 |
|
732: |
Parameter 'waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
|
739: |
Parameter 'waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
|
746: |
The parameter 'orientation_opt' of function 'relevant_entries' is passed by value |
OPT-14-3 |
|
759: |
'for' statement in a function 'relevant_entries' should be followed by a block |
CERT_C-EXP19-a-2 |
|
771: |
Use parenthesis to clarify order ('<' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
771: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
774: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP02-a-3 |
|
774: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP00-a-3 |
|
774: |
Do not use "==" or "!=" to test floating-point expression |
MISRA2004-13_3-3 |
|
796: |
The parameter 'angled_entries' of function 'Entries' is passed by value |
OPT-14-3 |
|
797: |
The parameter 'agnostic_entry' of function 'Entries' is passed by value |
OPT-14-3 |
|
801: |
Different types of operands: LHS type 'long', RHS type 'int' |
CERT_C-INT02-b-2 |
|
801: |
Different types of operands: LHS type 'long', RHS type 'int' |
CERT_C-EXP14-a-3 |
|
807: |
Parameter 'waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
+
|
828: |
The "this->_original.lanes" variable may be accessed out of bounds at index "entry->lane" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
Supergraph.cpp (813): std::optional<double> Supergraph::yaw_of(const Entry& entry) const
Supergraph.cpp (822): if (entry.orientation == Orientation::Any) *** Condition evaluation: (entry->orientation == Any) (assuming false)
Supergraph.cpp (825): if (!_constraint.has_value()) *** Condition evaluation: !this->_constraint.has_value() (assuming false)
Out of bounds access point
Supergraph.cpp (828): const auto& lane = _original.lanes[entry.lane]; |
|
+
|
828: |
The "this->_original.lanes" variable may be accessed out of bounds at index "entry->lane" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
Supergraph.cpp (813): std::optional<double> Supergraph::yaw_of(const Entry& entry) const
Supergraph.cpp (822): if (entry.orientation == Orientation::Any) *** Condition evaluation: (entry->orientation == Any) (assuming false)
Supergraph.cpp (825): if (!_constraint.has_value()) *** Condition evaluation: !this->_constraint.has_value() (assuming false)
Out of bounds access point
Supergraph.cpp (828): const auto& lane = _original.lanes[entry.lane]; |
|
|
847: |
Parameter 'start_waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
|
848: |
Parameter 'goal_waypoint_index' is not validated before use |
CERT_C-API00-a-3 |
|
849: |
Parameter 'goal_orientation' is not validated before use |
CERT_C-API00-a-3 |
|
849: |
The parameter 'goal_orientation' of function 'keys_for' is passed by value |
OPT-14-3 |
|
858: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
871: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
871: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
871: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
873: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
888: |
Declare local variable 'differential' as const |
CERT_C-DCL00-a-3 |
|
888: |
Variable "differential" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
898: |
Parameter 'key' is not validated before use |
CERT_C-API00-a-3 |
|
900: |
Parameter 'new_items' is not validated before use |
CERT_C-API00-a-3 |
|
915: |
The string literal is embedded directly in the code: [rmf_traffic::agv::planning::Supergraph::EntriesGenerator::generate]
Supergraph died while a EntriesCache was still being used. Please report this critical bug to the maintainers of rmf_traffic.
|
CERT_C-MSC41-a-1 |
|
937: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
953: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
953: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
953: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
954: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
962: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
962: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
962: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
971: |
Declare local variable 'diff_drive' as const |
CERT_C-DCL00-a-3 |
|
971: |
Variable "diff_drive" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
983: |
Parameter 'new_items' is not validated before use |
CERT_C-API00-a-3 |
|
987: |
'for' statement in a function 'generate' should be followed by a block |
CERT_C-EXP19-a-2 |
|
988: |
An expression of 'unsigned long' type should not be directly converted to the 'Side' enum type |
CERT_CPP-INT50-a-3 |
|
988: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
988: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
988: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
997: |
'for' statement in a function 'generate' should be followed by a block |
CERT_C-EXP19-a-2 |
|
998: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
998: |
An expression of 'unsigned long' type should not be directly converted to the 'Side' enum type |
CERT_CPP-INT50-a-3 |
|
998: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
998: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
998: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1017: |
The string literal is embedded directly in the code: [rmf_traffic::agv::planning::Supergraph::EntriesGenerator::generate]
Supergraph died while a EntriesCache was still being used. Please report this critical bug to the maintainers of rmf_traffic.
|
CERT_C-MSC41-a-1 |
+
|
1023: |
The "original->lanes" variable may be accessed out of bounds at index "key->lane" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
Supergraph.cpp (980): std::optional<double> Supergraph::LaneYawGenerator::generate(
Supergraph.cpp (985): if (key.orientation == Orientation::Any) *** Condition evaluation: (key->orientation == Any) (assuming false)
Supergraph.cpp (992): if (!_constraint.has_value()) *** Condition evaluation: !this->_constraint.has_value() (assuming false)
Supergraph.cpp (1004): const auto supergraph = _graph.lock();
Supergraph.cpp (1007): if (!supergraph) *** Condition evaluation: !supergraph.operator bool() (assuming false)
Supergraph.cpp (1022): const auto& original = supergraph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
Supergraph.cpp (1023): const auto& lane = original.lanes[key.lane]; |
|
+
|
1023: |
The "original->lanes" variable may be accessed out of bounds at index "key->lane" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
Supergraph.cpp (980): std::optional<double> Supergraph::LaneYawGenerator::generate(
Supergraph.cpp (985): if (key.orientation == Orientation::Any) *** Condition evaluation: (key->orientation == Any) (assuming false)
Supergraph.cpp (992): if (!_constraint.has_value()) *** Condition evaluation: !this->_constraint.has_value() (assuming false)
Supergraph.cpp (1004): const auto supergraph = _graph.lock();
Supergraph.cpp (1007): if (!supergraph) *** Condition evaluation: !supergraph.operator bool() (assuming false)
Supergraph.cpp (1022): const auto& original = supergraph->original();
Supergraph.cpp (697): return _original;
Out of bounds access point
Supergraph.cpp (1023): const auto& lane = original.lanes[key.lane]; |
|
|
1037: |
'for' statement in a function 'generate' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1038: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
1038: |
An expression of 'unsigned long' type should not be directly converted to the 'Side' enum type |
CERT_CPP-INT50-a-3 |
|
1038: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1038: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1038: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1049: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
1049: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1051: |
'for' statement in a function 'generate' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1052: |
An expression of 'unsigned long' type should not be directly converted to the 'Orientation' enum type |
CERT_CPP-INT50-a-3 |
|
1052: |
An expression of 'unsigned long' type should not be directly converted to the 'Side' enum type |
CERT_CPP-INT50-a-3 |
|
1052: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
1052: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
1052: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
1059: |
The parameter 'original' of function 'Supergraph' is passed by value |
OPT-14-3 |
|
1060: |
The parameter 'traits' of function 'Supergraph' is passed by value |
OPT-14-3 |
|
1061: |
The parameter 'lane_closures' of function 'Supergraph' is passed by value |
OPT-14-3 |
|
1063: |
Declare parameter 'traversal_cost_per_meter' as const |
CERT_C-DCL00-a-3 |
|
1071: |
Declare local variable 'diff' as const |
CERT_C-DCL00-a-3 |
|
1071: |
Variable "diff" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/Supergraph.hpp |
|
98: |
Constructor 'TraversalFromGenerator' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
163: |
The parameter 'original' of function 'make' is passed by value |
OPT-14-3 |
|
164: |
The parameter 'traits' of function 'make' is passed by value |
OPT-14-3 |
|
165: |
The parameter 'lane_closures' of function 'make' is passed by value |
OPT-14-3 |
|
203: |
The parameter 'orientation' of function 'relevant_entries' is passed by value |
OPT-14-3 |
|
206: |
The parameter 'angled_entries' of function 'Entries' is passed by value |
OPT-14-3 |
|
207: |
The parameter 'agnostic_entry' of function 'Entries' is passed by value |
OPT-14-3 |
|
232: |
The parameter 'goal_orientation' of function 'keys_for' is passed by value |
OPT-14-3 |
|
236: |
The parameter 'original' of function 'Supergraph' is passed by value |
OPT-14-3 |
|
237: |
The parameter 'traits' of function 'Supergraph' is passed by value |
OPT-14-3 |
|
238: |
The parameter 'lane_closures' of function 'Supergraph' is passed by value |
OPT-14-3 |
|
256: |
Constructor 'EntriesGenerator' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
277: |
Constructor 'LaneYawGenerator' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
295: |
The parameter 'p' of function 'orientation_constraint_satisfied' is passed by value |
OPT-14-3 |
|
297: |
The parameter 'course_vector' of function 'orientation_constraint_satisfied' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/Tree.hpp |
|
51: |
Use parenthesis to clarify order ('+' is the first operand of '<') |
CERT_C-EXP00-a-3 |
|
52: |
Use parenthesis to clarify order ('+' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
65: |
Constructor 'FrontierTemplate' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
75: |
The parameter 'transform' of function 'retarget' is passed by value |
OPT-14-3 |
|
86: |
Class 'Expander' has virtual functions without a virtual destructor |
OOP-23-2 |
|
86: |
Class 'Expander' must define a virtual destructor |
CERT_CPP-OOP52-a-2 |
|
86: |
The type name 'Expander' is not a unique identifier in the testing scope |
CERT_CPP-DCL60-a-3 |
|
245: |
The parameter 'forward_locked' of function '_search' is passed by value |
OPT-14-3 |
|
247: |
The parameter 'reverse_locked' of function '_search' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/a_star.hpp |
|
27: |
The 'Expander' identifier is the same as the name of a type defined in the testing scope |
CERT_CPP-DCL60-a-3 |
|
64: |
Use parenthesis to clarify order ('+' is the first operand of '<') |
CERT_C-EXP00-a-3 |
|
65: |
Use parenthesis to clarify order ('+' is the second operand of '<') |
CERT_C-EXP00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/impl_MinimalTravelHeuristic.hpp |
|
29: |
Unnamed namespace in a header file was found |
CERT_CPP-DCL59-a-3 |
|
77: |
Result of "*" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
77: |
Result of "*" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
79: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/agv/planning/impl_Tree.hpp |
|
76: |
'for' statement in a function 'retarget' should be followed by a block |
CERT_C-EXP19-a-2 |
|
114: |
Unused function's "expand" return value |
CERT_C-ERR33-a-1 |
|
114: |
Unused function's "expand" return value |
CERT_C-POS54-a-1 |
|
114: |
Unused function's "expand" return value |
CERT_C-EXP12-a-3 |
|
184: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
184: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
184: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
199: |
'for' statement in a function '_process_waiting_list' should be followed by a block |
CERT_C-EXP19-a-2 |
|
206: |
Unnamed namespace in a header file was found |
CERT_CPP-DCL59-a-3 |
|
244: |
'for' statement in a function 'lowest_cost_overlap' should be followed by a block |
CERT_C-EXP19-a-2 |
|
251: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
278: |
Class Timer has a non-trivial destructor, but no copy constructor nor copy assignment operator |
CERT_CPP-MEM51-c-1 |
|
281: |
The parameter 'purpose' of function 'Timer' is passed by value |
OPT-14-3 |
|
291: |
Destructor '~Timer' should not call function '-' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
291: |
Destructor '~Timer' should not call function '-' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
298: |
Destructor '~Timer' should not call function 'max' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
298: |
Destructor '~Timer' should not call function 'max' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
309: |
Declare parameter 'index' as const |
CERT_C-DCL00-a-3 |
|
312: |
Declare local variable 'check' as const |
CERT_C-DCL00-a-3 |
+
|
312: |
The "graph.operator->().original()->waypoints" variable may be accessed out of bounds at index "index", which may be greater
or equal to the container size
|
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
impl_Tree.hpp (308): inline std::string waypoint_name(
impl_Tree.hpp (312): graph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
impl_Tree.hpp (312): graph.operator->().original()->waypoints[index] |
|
+
|
312: |
The "graph.operator->().original()->waypoints" variable may be accessed out of bounds at index "index", which may be greater
or equal to the container size
|
CERT_CPP-STR53-a-2 |
|
|
Start of the path
impl_Tree.hpp (308): inline std::string waypoint_name(
impl_Tree.hpp (312): graph.operator->()->original()
Supergraph.cpp (697): return _original;
Out of bounds access point
impl_Tree.hpp (312): graph.operator->().original()->waypoints[index] |
|
|
313: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
313: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/blockade/Constraint.cpp |
|
30: |
Character constant is used as LHS operand of binary '-' operator |
CERT_C-STR09-a-3 |
|
30: |
Character constant is used as RHS operand of binary '-' operator |
CERT_C-STR09-a-3 |
|
36: |
Character constant is used as LHS operand of binary '-' operator |
CERT_C-STR09-a-3 |
|
36: |
Declare local variable 'offset' as const |
CERT_C-DCL00-a-3 |
|
36: |
The plain char type shall be initialized only by character values |
CERT_C-INT07-a-2 |
|
36: |
The plain char type shall be initialized only by character values |
CERT_C-STR00-a-1 |
|
36: |
The plain char type shall be initialized only by character values |
CERT_C-STR04-a-3 |
|
36: |
Use parenthesis to clarify order ('-' is the third operand of '?:') |
CERT_C-EXP00-a-3 |
|
37: |
Different types of operands: LHS type 'long', RHS type 'char' |
CERT_C-INT02-b-2 |
|
37: |
Different types of operands: LHS type 'long', RHS type 'char' |
CERT_C-EXP14-a-3 |
|
37: |
The only permissible operators on plain char types are assignment, equality and ternary operators (=, ==, !=, ?: ) |
CERT_C-INT07-a-2 |
|
37: |
The only permissible operators on plain char types are assignment, equality and ternary operators (=, ==, !=, ?: ) |
CERT_C-STR00-a-1 |
|
37: |
The only permissible operators on plain char types are assignment, equality and ternary operators (=, ==, !=, ?: ) |
CERT_C-STR04-a-3 |
|
37: |
Variable 'offset' of plain char/wchar_t type is used as RHS operand of binary '+' operator |
CERT_C-STR09-a-3 |
|
51: |
Declare parameter 'blocked_by' as const |
CERT_C-DCL00-a-3 |
|
52: |
The parameter 'blocker_hold_point' of function 'BlockageConstraint' is passed by value |
OPT-14-3 |
|
53: |
The parameter 'end_condition' of function 'BlockageConstraint' is passed by value |
OPT-14-3 |
|
58: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
58: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
58: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
61: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
66: |
The string literal is embedded directly in the code: Failed to evaluate BlockageConstraint |
CERT_C-MSC41-a-1 |
|
69: |
The string literal is embedded directly in the code: for state: < |
CERT_C-MSC41-a-1 |
|
76: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
76: |
The string literal is embedded directly in the code: :[ |
CERT_C-MSC41-a-1 |
|
76: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
79: |
The string literal is embedded directly in the code: > |
CERT_C-MSC41-a-1 |
|
92: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
101: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
116: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
118: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
124: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
125: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
125: |
The string literal is embedded directly in the code: h( |
CERT_C-MSC41-a-1 |
|
127: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
131: |
The string literal is embedded directly in the code: | |
CERT_C-MSC41-a-1 |
|
136: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
138: |
The string literal is embedded directly in the code: r( |
CERT_C-MSC41-a-1 |
|
140: |
The string literal is embedded directly in the code: p( |
CERT_C-MSC41-a-1 |
|
141: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
143: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
149: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
151: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
207: |
The string literal is embedded directly in the code: null |
CERT_C-MSC41-a-1 |
|
209: |
The string literal is embedded directly in the code: :( |
CERT_C-MSC41-a-1 |
|
212: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
214: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
216: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
220: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
235: |
Parameter 'blocked_by' is not validated before use |
CERT_C-API00-a-3 |
|
236: |
Parameter 'blocker_hold_point' is not validated before use |
CERT_C-API00-a-3 |
|
236: |
The parameter 'blocker_hold_point' of function 'blockage' is passed by value |
OPT-14-3 |
|
237: |
Parameter 'end_condition' is not validated before use |
CERT_C-API00-a-3 |
|
237: |
The parameter 'end_condition' of function 'blockage' is passed by value |
OPT-14-3 |
|
249: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
250: |
Declare parameter 'index' as const |
CERT_C-DCL00-a-3 |
|
254: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
254: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
254: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
257: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
262: |
Declare local variable 'error' as const |
CERT_C-DCL00-a-3 |
|
262: |
The string literal is embedded directly in the code: Failed to evaluate PassedConstraint because participant |
CERT_C-MSC41-a-1 |
|
264: |
The string literal is embedded directly in the code: is missing from the state. |
CERT_C-MSC41-a-1 |
|
277: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
286: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
293: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
295: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
295: |
The string literal is embedded directly in the code: p( |
CERT_C-MSC41-a-1 |
|
297: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
322: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
323: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
351: |
The string literal is embedded directly in the code: True |
CERT_C-MSC41-a-1 |
|
359: |
'for' statement in a function 'AndConstraint' should be followed by a block |
CERT_C-EXP19-a-2 |
|
364: |
Parameter 'new_constraint' is not validated before use |
CERT_C-API00-a-3 |
|
366: |
'for' statement in a function 'add' should be followed by a block |
CERT_C-EXP19-a-2 |
|
367: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
367: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
367: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
369: |
Unused function's "emplace" return value |
CERT_C-ERR33-a-1 |
|
369: |
Unused function's "emplace" return value |
CERT_C-POS54-a-1 |
|
369: |
Unused function's "emplace" return value |
CERT_C-EXP12-a-3 |
+
|
373: |
Method "evaluate" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Constraint.cpp (373): bool AndConstraint::evaluate(const State& state) const
Recursive method call
Constraint.cpp (377): if (!c->evaluate(state))
Recursive method call
Constraint.cpp (465): if (c->evaluate(state)) |
|
+
|
391: |
Method "partial_evaluate" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Constraint.cpp (391): std::optional<bool> AndConstraint::partial_evaluate(const State& state) const
Recursive method call
Constraint.cpp (395): if (const auto opt_value = c->partial_evaluate(state))
Recursive method call
Constraint.cpp (486): if (const auto opt_value = c->partial_evaluate(state)) |
|
+
|
407: |
Method "detail" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Constraint.cpp (407): std::string AndConstraint::detail(const State& state) const
Recursive method call
Constraint.cpp (414): return (*_constraints.begin())->detail(state);
Recursive method call
Constraint.cpp (505): return (*_constraints.begin())->detail(state); |
|
|
407: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
+
|
408: |
Duplicated function: 'std :: string AndConstraint :: detail ( const State & state )...' |
CDD-DUPM-2 |
|
|
[Line 408] Duplicated function in file 'Constraint.cpp'
[Line 499] Duplicated function in file 'Constraint.cpp' |
|
410: |
The string literal is embedded directly in the code: And-Empty-True |
CERT_C-MSC41-a-1 |
|
421: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
423: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
431: |
The string literal is embedded directly in the code: & |
CERT_C-MSC41-a-1 |
|
437: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
439: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
447: |
'for' statement in a function 'OrConstraint' should be followed by a block |
CERT_C-EXP19-a-2 |
|
452: |
Parameter 'new_constraint' is not validated before use |
CERT_C-API00-a-3 |
|
454: |
'for' statement in a function 'add' should be followed by a block |
CERT_C-EXP19-a-2 |
|
455: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
455: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
455: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
457: |
Unused function's "emplace" return value |
CERT_C-ERR33-a-1 |
|
457: |
Unused function's "emplace" return value |
CERT_C-POS54-a-1 |
|
457: |
Unused function's "emplace" return value |
CERT_C-EXP12-a-3 |
+
|
461: |
Method "evaluate" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Constraint.cpp (461): bool OrConstraint::evaluate(const State& state) const
Recursive method call
Constraint.cpp (465): if (c->evaluate(state))
Recursive method call
Constraint.cpp (377): if (!c->evaluate(state)) |
|
+
|
482: |
Method "partial_evaluate" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Constraint.cpp (482): std::optional<bool> OrConstraint::partial_evaluate(const State& state) const
Recursive method call
Constraint.cpp (486): if (const auto opt_value = c->partial_evaluate(state))
Recursive method call
Constraint.cpp (395): if (const auto opt_value = c->partial_evaluate(state)) |
|
+
|
498: |
Method "detail" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Constraint.cpp (498): std::string OrConstraint::detail(const State& state) const
Recursive method call
Constraint.cpp (505): return (*_constraints.begin())->detail(state);
Recursive method call
Constraint.cpp (414): return (*_constraints.begin())->detail(state); |
|
|
498: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
501: |
The string literal is embedded directly in the code: Or-Empty-True |
CERT_C-MSC41-a-1 |
|
512: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
514: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
522: |
The string literal is embedded directly in the code: | |
CERT_C-MSC41-a-1 |
|
528: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
530: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
551: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
553: |
Use parenthesis to clarify order ('==' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
553: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
556: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
573: |
Function 'compute_gridlock_constraint' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
573: |
Parameter 'node' is not validated before use |
CERT_C-API00-a-3 |
|
582: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
611: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
611: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
611: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
648: |
Function 'value' called in the right-hand operand of a logical '||' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
657: |
Declare local variable 'next' as const |
CERT_C-DCL00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/blockade/Constraint.hpp |
|
77: |
The parameter 'blocker_hold_point' of function 'blockage' is passed by value |
OPT-14-3 |
|
78: |
The parameter 'end_condition' of function 'blockage' is passed by value |
OPT-14-3 |
|
90: |
Constructor 'AndConstraint' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
109: |
Constructor 'OrConstraint' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
/rmf_traffic_testing/src/rmf_traffic/blockade/Moderator.cpp |
|
32: |
No constructor. All member variables: 'version' should be initialized in constructor |
INIT-06-1 |
|
43: |
Parameter 'obj' is not validated before use |
CERT_C-API00-a-3 |
|
45: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
49: |
Parameter 'obj' is not validated before use |
CERT_C-API00-a-3 |
|
87: |
Constructor 'ReservationInfo' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
87: |
Declare parameter 'id_' as const |
CERT_C-DCL00-a-3 |
|
116: |
The parameter 'info' of function 'Implementation' is passed by value |
OPT-14-3 |
|
117: |
The parameter 'debug' of function 'Implementation' is passed by value |
OPT-14-3 |
|
134: |
Parameter 'check' is not validated before use |
CERT_C-API00-a-3 |
|
185: |
The string literal is embedded directly in the code: Cannot reserve [ |
CERT_C-MSC41-a-1 |
|
186: |
The string literal is embedded directly in the code: -> |
CERT_C-MSC41-a-1 |
|
187: |
The string literal is embedded directly in the code: by: |
CERT_C-MSC41-a-1 |
|
187: |
The string literal is embedded directly in the code: ]. Blocked at |
CERT_C-MSC41-a-1 |
|
220: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
220: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
220: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
235: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
236: |
Parameter 'reservation_id' is not validated before use |
CERT_C-API00-a-3 |
|
237: |
Parameter 'reservation' is not validated before use |
CERT_C-API00-a-3 |
|
257: |
The string literal is embedded directly in the code: with |
CERT_C-MSC41-a-1 |
|
257: |
The string literal is embedded directly in the code: New path for |
CERT_C-MSC41-a-1 |
|
258: |
The string literal is embedded directly in the code: checkpoints |
CERT_C-MSC41-a-1 |
|
328: |
Unused function's "insert_or_assign" return value |
CERT_C-ERR33-a-1 |
|
328: |
Unused function's "insert_or_assign" return value |
CERT_C-POS54-a-1 |
|
328: |
Unused function's "insert_or_assign" return value |
CERT_C-EXP12-a-3 |
|
337: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
352: |
Use parenthesis to clarify order ('-' is the second operand of '>=') |
CERT_C-EXP00-a-3 |
|
361: |
The string literal is embedded directly in the code: Ready: |
CERT_C-MSC41-a-1 |
|
372: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
387: |
Use parenthesis to clarify order ('-' is the second operand of '>=') |
CERT_C-EXP00-a-3 |
|
408: |
Identifier 'r_it' is hiding other identifier with the same name declared in outer scope |
CERT_C-DCL01-b-3 |
|
427: |
Identifier 'r_it' is hiding other identifier with the same name declared in outer scope |
CERT_C-DCL01-b-3 |
|
436: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
436: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
436: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
444: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
476: |
The string literal is embedded directly in the code: [rmf_traffic::blockade::Participant::reached] Participant [ |
CERT_C-MSC41-a-1 |
|
477: |
The string literal is embedded directly in the code: ] reached an invalid checkpoint [ |
CERT_C-MSC41-a-1 |
|
478: |
The string literal is embedded directly in the code: ] when it was only assigned up to [ |
CERT_C-MSC41-a-1 |
|
479: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
489: |
The string literal is embedded directly in the code: Reached: |
CERT_C-MSC41-a-1 |
|
500: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
516: |
The string literal is embedded directly in the code: Canceling: |
CERT_C-MSC41-a-1 |
|
522: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
526: |
The string literal is embedded directly in the code: Canceling: |
CERT_C-MSC41-a-1 |
|
529: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
529: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
529: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
530: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
530: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
530: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
531: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
531: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
531: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
532: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
532: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
532: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
533: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
533: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
533: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
536: |
'for' statement in a function 'cancel' should be followed by a block |
CERT_C-EXP19-a-2 |
|
537: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
537: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
537: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
539: |
'for' statement in a function 'cancel' should be followed by a block |
CERT_C-EXP19-a-2 |
|
540: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
540: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
540: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
551: |
The parameter 'info' of function 'Moderator' is passed by value |
OPT-14-3 |
|
552: |
The parameter 'debug' of function 'Moderator' is passed by value |
OPT-14-3 |
|
564: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
565: |
Parameter 'reservation_id' is not validated before use |
CERT_C-API00-a-3 |
|
566: |
Parameter 'reservation' is not validated before use |
CERT_C-API00-a-3 |
|
573: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
574: |
Parameter 'reservation_id' is not validated before use |
CERT_C-API00-a-3 |
|
575: |
Parameter 'checkpoint' is not validated before use |
CERT_C-API00-a-3 |
|
582: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
582: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
583: |
Declare parameter 'reservation_id' as const |
CERT_C-DCL00-a-3 |
|
583: |
Parameter 'reservation_id' is not validated before use |
CERT_C-API00-a-3 |
|
584: |
Declare parameter 'checkpoint' as const |
CERT_C-DCL00-a-3 |
|
584: |
Parameter 'checkpoint' is not validated before use |
CERT_C-API00-a-3 |
|
591: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
592: |
Parameter 'reservation_id' is not validated before use |
CERT_C-API00-a-3 |
|
593: |
Parameter 'checkpoint' is not validated before use |
CERT_C-API00-a-3 |
|
600: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
601: |
Parameter 'reservation_id' is not validated before use |
CERT_C-API00-a-3 |
|
607: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
619: |
Parameter 'new_value' is not validated before use |
CERT_C-API00-a-3 |
|
626: |
Parameter 'info' is not validated before use |
CERT_C-API00-a-3 |
|
626: |
The parameter 'info' of function 'info_logger' is passed by value |
OPT-14-3 |
|
633: |
Parameter 'debug' is not validated before use |
CERT_C-API00-a-3 |
|
633: |
The parameter 'debug' of function 'debug_logger' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/blockade/Participant.cpp |
|
31: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
32: |
Parameter 'radius' is not validated before use |
CERT_C-API00-a-3 |
|
33: |
Parameter 'writer' is not validated before use |
CERT_C-API00-a-3 |
|
54: |
Parameter 'radius' is not validated before use |
CERT_C-API00-a-3 |
|
103: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
103: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
104: |
Use parenthesis to clarify order ('>' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
146: |
Destructor '~Shared' should not call function 'cancel' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
146: |
Destructor '~Shared' should not call function 'cancel' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
152: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
152: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
163: |
Declare parameter 'checkpoint' as const |
CERT_C-DCL00-a-3 |
|
163: |
Parameter 'checkpoint' is not validated before use |
CERT_C-API00-a-3 |
|
175: |
Parameter 'new_radius' is not validated before use |
CERT_C-API00-a-3 |
|
187: |
Parameter 'path' is not validated before use |
CERT_C-API00-a-3 |
|
187: |
The parameter 'path' of function 'set' is passed by value |
OPT-14-3 |
|
193: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
213: |
Use parenthesis to clarify order ('-' is the first operand of '<=') |
CERT_C-EXP00-a-3 |
|
219: |
Use parenthesis to clarify order ('<=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
251: |
Declare parameter 'checkpoint' as const |
CERT_C-DCL00-a-3 |
|
298: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
299: |
Parameter 'radius' is not validated before use |
CERT_C-API00-a-3 |
|
301: |
Parameter 'rectifier_factory' is not validated before use |
CERT_C-API00-a-3 |
|
306: |
The string literal is embedded directly in the code: [rmf_traffic::blockade::make_participant] A nullptr was given for the
`writer` argument. This is illegal.
|
CERT_C-MSC41-a-1 |
|
307: |
Undefined character was found |
CERT_C-MSC09-a-3 |
/rmf_traffic_testing/src/rmf_traffic/blockade/Rectifier.cpp |
|
29: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
39: |
Parameter 'status' is not validated before use |
CERT_C-API00-a-3 |
|
77: |
Class ModeratorRectificationRequester has a non-trivial destructor, but no copy constructor nor copy assignment operator |
CERT_CPP-MEM51-c-1 |
|
82: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
92: |
Destructor '~ModeratorRectificationRequester' should not call function 'operator bool' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
92: |
Destructor '~ModeratorRectificationRequester' should not call function 'operator bool' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
94: |
Destructor '~ModeratorRectificationRequester' should not call function 'insert' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
94: |
Destructor '~ModeratorRectificationRequester' should not call function 'insert' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
94: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
94: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
94: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
95: |
Destructor '~ModeratorRectificationRequester' should not call function 'erase' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
95: |
Destructor '~ModeratorRectificationRequester' should not call function 'erase' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
95: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
95: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
95: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
106: |
Parameter 'rectifier' is not validated before use |
CERT_C-API00-a-3 |
|
106: |
The parameter 'rectifier' of function 'make' is passed by value |
OPT-14-3 |
|
107: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
109: |
Unused function's "insert_or_assign" return value |
CERT_C-ERR33-a-1 |
|
109: |
Unused function's "insert_or_assign" return value |
CERT_C-POS54-a-1 |
|
109: |
Unused function's "insert_or_assign" return value |
CERT_C-EXP12-a-3 |
|
110: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
110: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
110: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
124: |
Constructor 'Implementation' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
131: |
The string literal is embedded directly in the code: [rmf_traffic::blockade::ModeratorRectificationRequesterFactory] nullptr
given for the `moderator` argument. This is illegal.
|
CERT_C-MSC41-a-1 |
|
132: |
Undefined character was found |
CERT_C-MSC09-a-3 |
|
162: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
162: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
162: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
178: |
Parameter 'rectifier' is not validated before use |
CERT_C-API00-a-3 |
|
178: |
The parameter 'rectifier' of function 'make' is passed by value |
OPT-14-3 |
|
179: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/blockade/conflicts.cpp |
|
28: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
31: |
Use parenthesis to clarify order ('==' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
32: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
33: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
34: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
38: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
51: |
Parameter 'alignments' is not validated before use |
CERT_C-API00-a-3 |
|
58: |
Parameter 'range_A' is not validated before use |
CERT_C-API00-a-3 |
|
59: |
Parameter 'range_B' is not validated before use |
CERT_C-API00-a-3 |
|
75: |
The string literal is embedded directly in the code: [rmf_traffic::blockade::Timeline::is_behind] BUG! Empty map! |
CERT_C-MSC41-a-1 |
|
78: |
Use parenthesis to clarify order ('<' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
78: |
Use parenthesis to clarify order ('<=' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
91: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
102: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
112: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
113: |
Parameter 'comp' is not validated before use |
CERT_C-API00-a-3 |
|
113: |
The parameter 'comp' of function '_insert_if_preferable' is passed by value |
OPT-14-3 |
|
133: |
Declare parameter 'is_behind' as const |
CERT_C-DCL00-a-3 |
|
133: |
Parameter 'is_behind' is not validated before use |
CERT_C-API00-a-3 |
|
134: |
Declare parameter 'is_in_front' as const |
CERT_C-DCL00-a-3 |
|
134: |
Parameter 'is_in_front' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
140: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
140: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
141: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
141: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
141: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
144: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
156: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
169: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
175: |
The string literal is embedded directly in the code: { |
CERT_C-MSC41-a-1 |
|
177: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
177: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
177: |
The string literal is embedded directly in the code: b( |
CERT_C-MSC41-a-1 |
|
180: |
The string literal is embedded directly in the code: } |
CERT_C-MSC41-a-1 |
|
188: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
189: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
195: |
Declare local variable 'error' as const |
CERT_C-DCL00-a-3 |
|
195: |
The string literal is embedded directly in the code: Failed to evalute BehindConstraint comparing |
CERT_C-MSC41-a-1 |
|
196: |
The string literal is embedded directly in the code: to |
CERT_C-MSC41-a-1 |
|
197: |
The string literal is embedded directly in the code: . Participant |
CERT_C-MSC41-a-1 |
|
198: |
The string literal is embedded directly in the code: is missing from the state. |
CERT_C-MSC41-a-1 |
|
203: |
Parameter 'should_be_behind' is not validated before use |
CERT_C-API00-a-3 |
|
204: |
Parameter 'should_be_in_front' is not validated before use |
CERT_C-API00-a-3 |
|
221: |
Parameter 'is_behind' is not validated before use |
CERT_C-API00-a-3 |
|
222: |
Parameter 'is_in_front' is not validated before use |
CERT_C-API00-a-3 |
|
223: |
Parameter 'timeline' is not validated before use |
CERT_C-API00-a-3 |
|
230: |
Function 'compatible_start_and_finish' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
231: |
Declare parameter 'start' as const |
CERT_C-DCL00-a-3 |
|
232: |
Declare parameter 'include_start' as const |
CERT_C-DCL00-a-3 |
|
233: |
Declare parameter 'finish' as const |
CERT_C-DCL00-a-3 |
|
234: |
Declare parameter 'include_finish' as const |
CERT_C-DCL00-a-3 |
|
236: |
Use parenthesis to clarify order ('+' is the first operand of '<') |
CERT_C-EXP00-a-3 |
|
245: |
Use parenthesis to clarify order ('+' is the first operand of '==') |
CERT_C-EXP00-a-3 |
|
255: |
Function 'can_merge_brackets' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
273: |
Function 'merge_brackets' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
315: |
Function 'can_merge_pair' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
316: |
Parameter 'pair0' is not validated before use |
CERT_C-API00-a-3 |
|
317: |
Parameter 'pair1' is not validated before use |
CERT_C-API00-a-3 |
|
324: |
Function 'try_merge' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
327: |
Parameter 'merge_count' is not validated before use |
CERT_C-API00-a-3 |
|
339: |
Function 'expand_bracket' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
340: |
Parameter 'bracket' is not validated before use |
CERT_C-API00-a-3 |
|
341: |
Parameter 'path' is not validated before use |
CERT_C-API00-a-3 |
|
368: |
Parameter 'path_a' is not validated before use |
CERT_C-API00-a-3 |
|
369: |
Parameter 'radius_a' is not validated before use |
CERT_C-API00-a-3 |
|
370: |
Parameter 'path_b' is not validated before use |
CERT_C-API00-a-3 |
|
371: |
Parameter 'radius_b' is not validated before use |
CERT_C-API00-a-3 |
|
372: |
Parameter 'angle_threshold' is not validated before use |
CERT_C-API00-a-3 |
|
376: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
387: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
422: |
Unused function's "emplace" return value |
CERT_C-ERR33-a-1 |
|
422: |
Unused function's "emplace" return value |
CERT_C-POS54-a-1 |
|
422: |
Unused function's "emplace" return value |
CERT_C-EXP12-a-3 |
|
425: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
427: |
Unused function's "emplace" return value |
CERT_C-ERR33-a-1 |
|
427: |
Unused function's "emplace" return value |
CERT_C-POS54-a-1 |
|
427: |
Unused function's "emplace" return value |
CERT_C-EXP12-a-3 |
|
440: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
440: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
440: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
446: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
446: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
446: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
460: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
460: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
460: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
472: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
472: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
472: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
487: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
487: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
487: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
503: |
Function 'compute_blocker' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
504: |
Parameter 'me' is not validated before use |
CERT_C-API00-a-3 |
|
505: |
Parameter 'my_path_size' is not validated before use |
CERT_C-API00-a-3 |
|
508: |
Parameter 'other_id' is not validated before use |
CERT_C-API00-a-3 |
|
522: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
529: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
537: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
556: |
Parameter 'id_a' is not validated before use |
CERT_C-API00-a-3 |
|
557: |
Parameter 'a_path_size' is not validated before use |
CERT_C-API00-a-3 |
|
558: |
Parameter 'id_b' is not validated before use |
CERT_C-API00-a-3 |
|
559: |
Parameter 'b_path_size' is not validated before use |
CERT_C-API00-a-3 |
|
564: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
564: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
564: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
567: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
567: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
567: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
575: |
Function 'get_alignment' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
575: |
Parameter 'alignments' is not validated before use |
CERT_C-API00-a-3 |
|
594: |
Function 'get_complement' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
595: |
Parameter 'alignments' is not validated before use |
CERT_C-API00-a-3 |
|
599: |
'for' statement in a function 'get_complement' should be followed by a block |
CERT_C-EXP19-a-2 |
|
638: |
'for' statement in a function 'compute_final_ShouldGo_constraints' should be followed by a block |
CERT_C-EXP19-a-2 |
|
653: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
653: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
658: |
'for' statement in a function 'compute_final_ShouldGo_constraints' should be followed by a block |
CERT_C-EXP19-a-2 |
|
665: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
665: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
711: |
Variable "checkpoint" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
734: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
734: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
734: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
757: |
Declare local variable 'c' as const |
CERT_C-DCL00-a-3 |
|
760: |
Declare local variable 'and_constraint' as const |
CERT_C-DCL00-a-3 |
|
783: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
786: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
788: |
The string literal is embedded directly in the code: ( |
CERT_C-MSC41-a-1 |
|
790: |
The string literal is embedded directly in the code: , |
CERT_C-MSC41-a-1 |
|
793: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
795: |
The string literal is embedded directly in the code: ) |
CERT_C-MSC41-a-1 |
|
802: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
802: |
Parameter 'pair' is not validated before use |
CERT_C-API00-a-3 |
|
804: |
The string literal is embedded directly in the code: x |
CERT_C-MSC41-a-1 |
|
810: |
Parameter 'os' is not validated before use |
CERT_C-API00-a-3 |
|
810: |
Parameter 'pair' is not validated before use |
CERT_C-API00-a-3 |
|
812: |
The string literal is embedded directly in the code: | |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/blockade/conflicts.hpp |
|
72: |
Constructor 'Timeline' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
86: |
The parameter 'comp' of function '_insert_if_preferable' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/blockade/geometry.cpp |
|
26: |
Function 'compute_smallest_distance_squared' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
27: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
27: |
The parameter 'p' of function 'compute_smallest_distance_squared' is passed by value |
OPT-14-3 |
|
28: |
Parameter 'p_other0' is not validated before use |
CERT_C-API00-a-3 |
|
28: |
The parameter 'p_other0' of function 'compute_smallest_distance_squared' is passed by value |
OPT-14-3 |
|
29: |
Parameter 'n_other' is not validated before use |
CERT_C-API00-a-3 |
|
29: |
The parameter 'n_other' of function 'compute_smallest_distance_squared' is passed by value |
OPT-14-3 |
|
30: |
Parameter 'c_other' is not validated before use |
CERT_C-API00-a-3 |
|
40: |
Parameter 's_a' is not validated before use |
CERT_C-API00-a-3 |
|
41: |
Parameter 's_b' is not validated before use |
CERT_C-API00-a-3 |
|
60: |
Values "cos_theta" passed to library function "acos" without being checked |
CERT_C-MEM07-a-2 |
|
60: |
Values "cos_theta" passed to library function "acos" without being checked |
CERT_C-MEM04-a-2 |
|
74: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
77: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
124: |
Use parenthesis to clarify order ('/' is the second operand of '<=') |
CERT_C-EXP00-a-3 |
|
126: |
Use parenthesis to clarify order ('<=' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
126: |
Use parenthesis to clarify order ('<=' is the second operand of '||') |
CERT_C-EXP00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/blockade/geometry.hpp |
+
|
74: |
"ConflictInfo()" is used prior to initialization |
BD-PB-NOTINIT-1 |
|
|
Source of not initialized value
geometry.hpp (74): return ConflictInfo(); *** Not initialized value: ConflictInfo()
geometry.hpp (74): ConflictInfo()
geometry.hpp (45): Type type = Nothing; *** Not initialized value: *this
Usage point
geometry.hpp (74): return ConflictInfo(); *** Not initialized value: ConflictInfo() |
|
+
|
74: |
"ConflictInfo()" is used prior to initialization |
CERT_C-EXP33-a-1 |
|
|
Source of not initialized value
geometry.hpp (74): return ConflictInfo(); *** Not initialized value: ConflictInfo()
geometry.hpp (74): ConflictInfo()
geometry.hpp (45): Type type = Nothing; *** Not initialized value: *this
Usage point
geometry.hpp (74): return ConflictInfo(); *** Not initialized value: ConflictInfo() |
|
+
|
74: |
"ConflictInfo()" is used prior to initialization |
CERT_CPP-EXP53-a-1 |
|
|
Source of not initialized value
geometry.hpp (74): return ConflictInfo(); *** Not initialized value: ConflictInfo()
geometry.hpp (74): ConflictInfo()
geometry.hpp (45): Type type = Nothing; *** Not initialized value: *this
Usage point
geometry.hpp (74): return ConflictInfo(); *** Not initialized value: ConflictInfo() |
|
/rmf_traffic_testing/src/rmf_traffic/blockade/internal_Participant.hpp |
|
37: |
Class Shared has a non-trivial destructor, but no copy constructor nor copy assignment operator |
CERT_CPP-MEM51-c-1 |
/rmf_traffic_testing/src/rmf_traffic/debug/Plumber.cpp |
|
27: |
The parameter 'name' of function 'Plumber' is passed by value |
OPT-14-3 |
|
40: |
Declare parameter 'prefix' as const |
CERT_C-DCL00-a-3 |
|
40: |
Parameter 'prefix' is not validated before use |
CERT_C-API00-a-3 |
|
43: |
The string literal is embedded directly in the code: [ |
CERT_C-MSC41-a-1 |
|
43: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/geometry/Box.cpp |
|
38: |
Declare parameter 'x' as const |
CERT_C-DCL00-a-3 |
|
38: |
Declare parameter 'y' as const |
CERT_C-DCL00-a-3 |
|
76: |
Check for assignment to self in operator= in class 'Box' |
CERT_CPP-OOP54-a-3 |
|
76: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
85: |
Declare parameter 'x_length' as const |
CERT_C-DCL00-a-3 |
|
85: |
Parameter 'x_length' is not validated before use |
CERT_C-API00-a-3 |
|
87: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
87: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
91: |
Declare parameter 'y_length' as const |
CERT_C-DCL00-a-3 |
|
91: |
Parameter 'y_length' is not validated before use |
CERT_C-API00-a-3 |
|
93: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
93: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
99: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
99: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
105: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
105: |
Do not perform a cast between a pointer to 'BoxInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
109: |
Function 'finalize' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
111: |
Declare local variable 'characteristic_length' as const |
CERT_C-DCL00-a-3 |
|
111: |
Result of "get_y_length" passed to library function "sqrt" without being checked |
CERT_C-MEM07-a-2 |
|
111: |
Result of "get_y_length" passed to library function "sqrt" without being checked |
CERT_C-MEM04-a-2 |
|
123: |
Declare local variable 'characteristic_length' as const |
CERT_C-DCL00-a-3 |
|
123: |
Result of "get_y_length" passed to library function "sqrt" without being checked |
CERT_C-MEM07-a-2 |
|
123: |
Result of "get_y_length" passed to library function "sqrt" without being checked |
CERT_C-MEM04-a-2 |
|
133: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
133: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
|
135: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP02-a-3 |
|
135: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP00-a-3 |
|
135: |
Do not use "==" or "!=" to test floating-point expression |
MISRA2004-13_3-3 |
|
135: |
Use parenthesis to clarify order ('==' is the first operand of '&&') |
CERT_C-EXP00-a-3 |
|
136: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP02-a-3 |
|
136: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP00-a-3 |
|
136: |
Do not use "==" or "!=" to test floating-point expression |
MISRA2004-13_3-3 |
|
136: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
140: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/geometry/Circle.cpp |
|
36: |
Constructor 'CircleInternal' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
36: |
Declare parameter 'radius' as const |
CERT_C-DCL00-a-3 |
|
70: |
Check for assignment to self in operator= in class 'Circle' |
CERT_CPP-OOP54-a-3 |
|
70: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
79: |
Declare parameter 'r' as const |
CERT_C-DCL00-a-3 |
|
79: |
Parameter 'r' is not validated before use |
CERT_C-API00-a-3 |
|
81: |
Do not perform a cast between a pointer to 'CircleInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
81: |
Do not perform a cast between a pointer to 'CircleInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
87: |
Do not perform a cast between a pointer to 'CircleInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
87: |
Do not perform a cast between a pointer to 'CircleInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
91: |
Function 'finalize' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
109: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
109: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
|
111: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP02-a-3 |
|
111: |
Do not use "==" or "!=" to test floating-point expression |
CERT_C-FLP00-a-3 |
|
111: |
Do not use "==" or "!=" to test floating-point expression |
MISRA2004-13_3-3 |
|
115: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
115: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/geometry/Shape.cpp |
|
70: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
76: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/geometry/ShapeInternal.hpp |
|
57: |
No constructor. All member variables: '_characteristic_length' should be initialized in constructor |
INIT-06-1 |
|
69: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
|
74: |
Function 'make_final_shape' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
75: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
|
75: |
The parameter 'shape' of function 'make_final_shape' is passed by value |
OPT-14-3 |
|
76: |
Parameter 'collisions' is not validated before use |
CERT_C-API00-a-3 |
|
76: |
The parameter 'collisions' of function 'make_final_shape' is passed by value |
OPT-14-3 |
|
77: |
Parameter 'characteristic_length' is not validated before use |
CERT_C-API00-a-3 |
|
78: |
Parameter 'compare_equality' is not validated before use |
CERT_C-API00-a-3 |
|
78: |
The parameter 'compare_equality' of function 'make_final_shape' is passed by value |
OPT-14-3 |
|
96: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
|
102: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
|
102: |
The parameter 'shape' of function 'make_final_shape' is passed by value |
OPT-14-3 |
|
103: |
Parameter 'collisions' is not validated before use |
CERT_C-API00-a-3 |
|
103: |
The parameter 'collisions' of function 'make_final_shape' is passed by value |
OPT-14-3 |
|
104: |
Parameter 'characteristic_length' is not validated before use |
CERT_C-API00-a-3 |
|
105: |
Parameter 'compare_equality' is not validated before use |
CERT_C-API00-a-3 |
|
105: |
The parameter 'compare_equality' of function 'make_final_shape' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/geometry/SimplePolygon.cpp |
|
47: |
Parameter 'intersections' is not validated before use |
CERT_C-API00-a-3 |
|
49: |
The string literal is embedded directly in the code: [rmf_traffic::Polygon] Invalid polygon requested: |
CERT_C-MSC41-a-1 |
|
51: |
The string literal is embedded directly in the code: pair(s) of edges intersect. See the following pairs where waypoint A
intersects waypoint B:
|
CERT_C-MSC41-a-1 |
|
53: |
The string literal is embedded directly in the code: * (index A0) <vertex A0> -> (index A1) <vertex A1> |
CERT_C-MSC41-a-1 |
|
54: |
The string literal is embedded directly in the code: (index B0) <vertex B0> -> (index B1) <vertex B1> |
CERT_C-MSC41-a-1 |
|
61: |
The string literal is embedded directly in the code: * |
CERT_C-MSC41-a-1 |
|
63: |
The string literal is embedded directly in the code: |
CERT_C-MSC41-a-1 |
|
65: |
The string literal is embedded directly in the code: ( |
CERT_C-MSC41-a-1 |
|
66: |
The string literal is embedded directly in the code: ) < |
CERT_C-MSC41-a-1 |
|
67: |
The string literal is embedded directly in the code: > | ( |
CERT_C-MSC41-a-1 |
|
68: |
The string literal is embedded directly in the code: ) < |
CERT_C-MSC41-a-1 |
|
69: |
The string literal is embedded directly in the code: > |
CERT_C-MSC41-a-1 |
|
78: |
Parameter 'num_vertices' is not validated before use |
CERT_C-API00-a-3 |
|
80: |
The string literal is embedded directly in the code: [rmf_traffic::Polygon] Invalid polygon requested: |
CERT_C-MSC41-a-1 |
|
81: |
The string literal is embedded directly in the code: vertices specified, but at least 3 |
CERT_C-MSC41-a-1 |
|
82: |
The string literal is embedded directly in the code: vertices are required for a polygon. |
CERT_C-MSC41-a-1 |
|
87: |
Parameter 'edge_a' is not validated before use |
CERT_C-API00-a-3 |
|
88: |
Parameter 'edge_b' is not validated before use |
CERT_C-API00-a-3 |
|
89: |
Declare parameter 'intersection_point' as const |
CERT_C-DCL00-a-3 |
|
106: |
Result of "determinant" passed to library function "abs" without being checked |
CERT_C-MEM07-a-2 |
|
106: |
Result of "determinant" passed to library function "abs" without being checked |
CERT_C-MEM04-a-2 |
|
116: |
Use parenthesis to clarify order ('<' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
116: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
139: |
Parameter 'polygon' is not validated before use |
CERT_C-API00-a-3 |
|
140: |
Parameter 'triangle' is not validated before use |
CERT_C-API00-a-3 |
+
|
147: |
The "polygon" variable may be accessed out of bounds at index "a0", which may be greater or equal to the container size |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
SimplePolygon.cpp (138): bool is_polygon_ear(
SimplePolygon.cpp (144): const std::size_t a0 = triangle[0];
SimplePolygon.cpp (145): const std::size_t a1 = triangle[2]; // yes, [2] is intended
Out of bounds access point
SimplePolygon.cpp (147): polygon[a0] |
|
+
|
147: |
The "polygon" variable may be accessed out of bounds at index "a0", which may be greater or equal to the container size |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
SimplePolygon.cpp (138): bool is_polygon_ear(
SimplePolygon.cpp (144): const std::size_t a0 = triangle[0];
SimplePolygon.cpp (145): const std::size_t a1 = triangle[2]; // yes, [2] is intended
Out of bounds access point
SimplePolygon.cpp (147): polygon[a0] |
|
+
|
147: |
The "polygon" variable may be accessed out of bounds at index "a1", which may be greater or equal to the container size |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
SimplePolygon.cpp (138): bool is_polygon_ear(
SimplePolygon.cpp (144): const std::size_t a0 = triangle[0];
SimplePolygon.cpp (145): const std::size_t a1 = triangle[2]; // yes, [2] is intended
Out of bounds access point
SimplePolygon.cpp (147): polygon[a1] |
|
+
|
147: |
The "polygon" variable may be accessed out of bounds at index "a1", which may be greater or equal to the container size |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
SimplePolygon.cpp (138): bool is_polygon_ear(
SimplePolygon.cpp (144): const std::size_t a0 = triangle[0];
SimplePolygon.cpp (145): const std::size_t a1 = triangle[2]; // yes, [2] is intended
Out of bounds access point
SimplePolygon.cpp (147): polygon[a1] |
|
|
151: |
Use parenthesis to clarify order ('+' is the third operand of '?:') |
CERT_C-EXP00-a-3 |
|
151: |
Use parenthesis to clarify order ('-' is the second operand of '==') |
CERT_C-EXP00-a-3 |
|
154: |
Use parenthesis to clarify order ('==' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
154: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
154: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
154: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
169: |
Parameter 'polygon' is not validated before use |
CERT_C-API00-a-3 |
|
170: |
Parameter 'triangle' is not validated before use |
CERT_C-API00-a-3 |
+
|
175: |
The "polygon" variable may be accessed out of bounds at index "*triangle.operator[](...)" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
SimplePolygon.cpp (168): std::size_t find_deepest_reflex_point(
Out of bounds access point
SimplePolygon.cpp (175): polygon[*triangle.operator[](...)] |
|
+
|
175: |
The "polygon" variable may be accessed out of bounds at index "*triangle.operator[](...)" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
SimplePolygon.cpp (168): std::size_t find_deepest_reflex_point(
Out of bounds access point
SimplePolygon.cpp (175): polygon[*triangle.operator[](...)] |
|
|
196: |
Use parenthesis to clarify order ('==' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
196: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
196: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
204: |
Use parenthesis to clarify order ('+' is the first operand of '>') |
CERT_C-EXP00-a-3 |
|
204: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
204: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
204: |
Use parenthesis to clarify order ('>' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
225: |
Parameter 'original' is not validated before use |
CERT_C-API00-a-3 |
|
226: |
Parameter 'edge' is not validated before use |
CERT_C-API00-a-3 |
|
247: |
'for' statement in a function 'split_subpolygon' should be followed by a block |
CERT_C-EXP19-a-2 |
|
255: |
Parameter 'polygon' is not validated before use |
CERT_C-API00-a-3 |
|
256: |
Parameter 'triangle' is not validated before use |
CERT_C-API00-a-3 |
+
|
259: |
The "polygon" variable may be accessed out of bounds at index "*triangle.operator[](...)" |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
SimplePolygon.cpp (254): Triangle get_original_indices(
Out of bounds access point
SimplePolygon.cpp (259): polygon[triangle[0]].original_index, |
|
+
|
259: |
The "polygon" variable may be accessed out of bounds at index "*triangle.operator[](...)" |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
SimplePolygon.cpp (254): Triangle get_original_indices(
Out of bounds access point
SimplePolygon.cpp (259): polygon[triangle[0]].original_index, |
|
|
272: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
272: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
272: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
301: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
303: |
The string literal is embedded directly in the code: [rmf_traffic::geometry::decompose_polygon] |
CERT_C-MSC41-a-1 |
|
304: |
The string literal is embedded directly in the code: A subpolygon has an incorrect number of vertices: |
CERT_C-MSC41-a-1 |
|
305: |
The string literal is embedded directly in the code: . This is a bug that should never happen. Please report |
CERT_C-MSC41-a-1 |
|
306: |
The string literal is embedded directly in the code: this to the developers! |
CERT_C-MSC41-a-1 |
|
321: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
321: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
321: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
339: |
'for' statement in a function 'decompose_polygon' should be followed by a block |
CERT_C-EXP19-a-2 |
|
340: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
340: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
340: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
347: |
Parameter 'v0' is not validated before use |
CERT_C-API00-a-3 |
|
347: |
Parameter 'v1' is not validated before use |
CERT_C-API00-a-3 |
|
353: |
Parameter 'polygon' is not validated before use |
CERT_C-API00-a-3 |
|
368: |
Use parenthesis to clarify order ('+' is the first operand of '==') |
CERT_C-EXP00-a-3 |
|
368: |
Use parenthesis to clarify order ('+' is the third operand of '?:') |
CERT_C-EXP00-a-3 |
|
368: |
Use parenthesis to clarify order ('==' is the first operand of '?:') |
CERT_C-EXP00-a-3 |
|
398: |
Constructor 'ConvexWrapper' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
402: |
Implicit conversion from 'unsigned long' type to 'signed int' type in function's argument |
CERT_C-INT02-a-2 |
|
411: |
Parameter 'points' is not validated before use |
CERT_C-API00-a-3 |
|
434: |
Parameter 'polygon' is not validated before use |
CERT_C-API00-a-3 |
|
441: |
Parameter 'polygon' is not validated before use |
CERT_C-API00-a-3 |
|
452: |
'for' statement in a function 'make_triangulation' should be followed by a block |
CERT_C-EXP19-a-2 |
|
452: |
The 'const std::array<std::size_t, 3UL>::value_type *' pointer to object type should not be implicitly converted to the integral
type
|
CERT_C-INT36-b-3 |
|
465: |
The parameter 'intersections' of function 'InvalidSimplePolygonException' is passed by value |
OPT-14-3 |
|
498: |
Constructor 'SimplePolygonInternal' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
498: |
The parameter 'points' of function 'SimplePolygonInternal' is passed by value |
OPT-14-3 |
|
504: |
Declare parameter 'intersections' as const |
CERT_C-DCL00-a-3 |
|
509: |
Use parenthesis to clarify order ('-' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
516: |
Use parenthesis to clarify order ('+' is the third operand of '?:') |
CERT_C-EXP00-a-3 |
|
516: |
Use parenthesis to clarify order ('-' is the second operand of '==') |
CERT_C-EXP00-a-3 |
|
517: |
Use parenthesis to clarify order ('==' is the first operand of '||') |
CERT_C-EXP00-a-3 |
|
517: |
Use parenthesis to clarify order ('==' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
581: |
'for' statement in a function 'make_fcl' should be followed by a block |
CERT_C-EXP19-a-2 |
|
592: |
The parameter 'points' of function 'SimplePolygon' is passed by value |
OPT-14-3 |
|
607: |
Check for assignment to self in operator= in class 'SimplePolygon' |
CERT_CPP-OOP54-a-3 |
|
607: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
619: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
619: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
619: |
Unused function's "check_self_intersections" return value |
CERT_C-ERR33-a-1 |
|
619: |
Unused function's "check_self_intersections" return value |
CERT_C-POS54-a-1 |
|
619: |
Unused function's "check_self_intersections" return value |
CERT_C-EXP12-a-3 |
|
627: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
627: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
634: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
634: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
640: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
640: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
645: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
647: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
647: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
652: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
654: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
654: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
659: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
661: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
661: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
662: |
Implicit conversion from 'unsigned long' type to 'signed long' type in function's argument |
CERT_C-INT02-a-2 |
|
662: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
662: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
662: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
666: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
668: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
668: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
674: |
Parameter 'index' is not validated before use |
CERT_C-API00-a-3 |
|
675: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
677: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP39-b-3 |
|
677: |
Do not perform a cast between a pointer to 'SimplePolygonInternal' type and a pointer to 'Internal' type |
CERT_C-EXP36-a-3 |
|
678: |
Implicit conversion from 'unsigned long' type to 'signed long' type in function's argument |
CERT_C-INT02-a-2 |
|
678: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
678: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
678: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
682: |
Function 'finalize' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
684: |
Implicit conversion from integral to floating type in initialization |
CERT_C-EXP39-a-3 |
|
717: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
717: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/geometry/SimplePolygon.hpp |
|
72: |
Constructor 'SimplePolygon' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
145: |
The 'InvalidSimplePolygonException' class that inherits from 'std::exception' should not contain the declaration of the member
variable of 'std::string' type
|
CERT_CPP-ERR60-a-3 |
|
153: |
Constructor 'InvalidSimplePolygonException' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
/rmf_traffic_testing/src/rmf_traffic/geometry/Space.cpp |
|
34: |
The parameter 'tf' of function 'Space' is passed by value |
OPT-14-3 |
|
48: |
Parameter 'shape' is not validated before use |
CERT_C-API00-a-3 |
|
61: |
Parameter 'tf' is not validated before use |
CERT_C-API00-a-3 |
|
61: |
The parameter 'tf' of function 'set_pose' is passed by value |
OPT-14-3 |
|
69: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
70: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
|
78: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
79: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/internal_Route.hpp |
|
35: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Change.cpp |
|
26: |
No constructor. All member variables: 'plan' should be initialized in constructor |
INIT-06-1 |
|
38: |
The parameter 'additions' of function 'Add' is passed by value |
OPT-14-3 |
|
58: |
The parameter 'duration' of function 'Delay' is passed by value |
OPT-14-3 |
|
80: |
The parameter 'ids' of function 'Erase' is passed by value |
OPT-14-3 |
|
93: |
No constructor. All member variables: 'version' should be initialized in constructor |
INIT-06-1 |
|
103: |
The parameter 'checkpoints' of function 'Progress' is passed by value |
OPT-14-3 |
|
123: |
No constructor. All member variables: 'id' should be initialized in constructor |
INIT-06-1 |
|
135: |
The parameter 'description' of function 'RegisterParticipant' is passed by value |
OPT-14-3 |
|
155: |
No constructor. All member variables: 'id' should be initialized in constructor |
INIT-06-1 |
|
176: |
No constructor. All member variables: 'id' should be initialized in constructor |
INIT-06-1 |
|
186: |
The parameter 'desc' of function 'UpdateParticipantInfo' is passed by value |
OPT-14-3 |
|
212: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
212: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
212: |
The parameter 'time' of function 'Cull' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Database.cpp |
|
80: |
Declare parameter 'participant_' as const |
CERT_C-DCL00-a-3 |
|
81: |
Declare parameter 'plan_id_' as const |
CERT_C-DCL00-a-3 |
|
82: |
Declare parameter 'route_id_' as const |
CERT_C-DCL00-a-3 |
|
83: |
Declare parameter 'storage_id_' as const |
CERT_C-DCL00-a-3 |
|
85: |
Declare parameter 'schedule_version_' as const |
CERT_C-DCL00-a-3 |
|
194: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
195: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
196: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
229: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
229: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
230: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
231: |
Parameter 'delay' is not validated before use |
CERT_C-API00-a-3 |
|
231: |
The parameter 'delay' of function 'apply_delay' is passed by value |
OPT-14-3 |
|
236: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
236: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
236: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
242: |
Assert contains function-like call to 'start_time' |
CERT_C-PRE31-c-3 |
|
242: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
279: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
279: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
280: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
285: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
285: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
285: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
318: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
318: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
319: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
324: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
324: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
324: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
376: |
The string literal is embedded directly in the code: [Database::Implementation::get_next_participant_id] There are no remaining
Participant ID values available. This should never happen. Please report this as a serious bug.
|
CERT_C-MSC41-a-1 |
|
392: |
The string literal is embedded directly in the code: [Database::Implementation::add_new_participant_id] Re-adding participant
ID [
|
CERT_C-MSC41-a-1 |
|
393: |
The string literal is embedded directly in the code: ]. This should not be possible! Please report this bug. |
CERT_C-MSC41-a-1 |
|
399: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
410: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
413: |
'for' statement in a function 'current_entry_history_count' should be followed by a block |
CERT_C-EXP19-a-2 |
|
421: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
428: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
429: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
439: |
'for' statement in a function 'get_itinerary' should be followed by a block |
CERT_C-EXP19-a-2 |
|
447: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
448: |
Parameter 'plan' is not validated before use |
CERT_C-API00-a-3 |
|
449: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
450: |
Parameter 'storage_base' is not validated before use |
CERT_C-API00-a-3 |
|
458: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::Database::set] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
459: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
480: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
503: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
503: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
504: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
512: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::Database::extend] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
513: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
519: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
536: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
547: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
547: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
548: |
Declare parameter 'delay' as const |
CERT_C-DCL00-a-3 |
|
548: |
Parameter 'delay' is not validated before use |
CERT_C-API00-a-3 |
|
548: |
The parameter 'delay' of function 'delay' is passed by value |
OPT-14-3 |
|
556: |
The string literal is embedded directly in the code: [Database::delay] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
557: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
563: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
577: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
583: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
583: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
584: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
585: |
Parameter 'reached_checkpoints' is not validated before use |
CERT_C-API00-a-3 |
|
586: |
Parameter 'version' is not validated before use |
CERT_C-API00-a-3 |
|
593: |
The string literal is embedded directly in the code: [Database::reached] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
594: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
599: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
605: |
'for' statement in a function 'reached' should be followed by a block |
CERT_C-EXP19-a-2 |
|
611: |
'for' statement in a function 'reached' should be followed by a block |
CERT_C-EXP19-a-2 |
|
612: |
Unused function's "update" return value |
CERT_C-ERR33-a-1 |
|
612: |
Unused function's "update" return value |
CERT_C-POS54-a-1 |
|
612: |
Unused function's "update" return value |
CERT_C-EXP12-a-3 |
|
614: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
623: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
623: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
631: |
The string literal is embedded directly in the code: [Database::erase] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
632: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
638: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
652: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
659: |
Function 'register_participant_impl' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
660: |
Parameter 'pimpl' is not validated before use |
CERT_C-API00-a-3 |
|
661: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
662: |
Parameter 'last_known_version' is not validated before use |
CERT_C-API00-a-3 |
|
663: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
663: |
The parameter 'description' of function 'register_participant_impl' is passed by value |
OPT-14-3 |
|
684: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
684: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
684: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
696: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
696: |
The parameter 'description' of function 'register_participant' is passed by value |
OPT-14-3 |
|
708: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
709: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
709: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
710: |
Declare parameter 'last_known_version' as const |
CERT_C-DCL00-a-3 |
|
710: |
Parameter 'last_known_version' is not validated before use |
CERT_C-API00-a-3 |
|
711: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
711: |
The parameter 'description' of function 'internal_register_participant' is passed by value |
OPT-14-3 |
|
715: |
Unused function's "register_participant_impl" return value |
CERT_C-ERR33-a-1 |
|
715: |
Unused function's "register_participant_impl" return value |
CERT_C-POS54-a-1 |
|
715: |
Unused function's "register_participant_impl" return value |
CERT_C-EXP12-a-3 |
|
721: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
722: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
722: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
723: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
723: |
Parameter 'plan' is not validated before use |
CERT_C-API00-a-3 |
|
724: |
Parameter 'routes' is not validated before use |
CERT_C-API00-a-3 |
|
724: |
The parameter 'routes' of function 'set_participant_state' is passed by value |
OPT-14-3 |
|
725: |
Declare parameter 'storage_base' as const |
CERT_C-DCL00-a-3 |
|
725: |
Parameter 'storage_base' is not validated before use |
CERT_C-API00-a-3 |
|
727: |
Parameter 'progress' is not validated before use |
CERT_C-API00-a-3 |
|
727: |
The parameter 'progress' of function 'set_participant_state' is passed by value |
OPT-14-3 |
|
728: |
Declare parameter 'progress_version' as const |
CERT_C-DCL00-a-3 |
|
728: |
Parameter 'progress_version' is not validated before use |
CERT_C-API00-a-3 |
|
740: |
The string literal is embedded directly in the code: No participant with ID [ |
CERT_C-MSC41-a-1 |
|
740: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
748: |
Assert contains function-like call to 'expected_version' |
CERT_C-PRE31-c-3 |
|
748: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
753: |
The string literal is embedded directly in the code: Inconsistency detected with the itinerary version [ |
CERT_C-MSC41-a-1 |
|
754: |
The string literal is embedded directly in the code: ] of participant [ |
CERT_C-MSC41-a-1 |
|
795: |
Parameter 'database' is not validated before use |
CERT_C-API00-a-3 |
|
796: |
Parameter 'version' is not validated before use |
CERT_C-API00-a-3 |
|
807: |
Declare local variable 'finish' as const |
CERT_C-DCL00-a-3 |
|
829: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
829: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
830: |
Parameter 'desc' is not validated before use |
CERT_C-API00-a-3 |
|
830: |
The parameter 'desc' of function 'update_description' is passed by value |
OPT-14-3 |
|
837: |
The string literal is embedded directly in the code: [Database::update_description] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
838: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
845: |
Declare local variable 'version' as const |
CERT_C-DCL00-a-3 |
|
845: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
854: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
854: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
864: |
The string literal is embedded directly in the code: [Database::unregister_participant] Requested unregistering an inactive
participant ID [
|
CERT_C-MSC41-a-1 |
|
865: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
868: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
873: |
The string literal is embedded directly in the code: [Database::unregister_participant] Inconsistency in participant registration
[
|
CERT_C-MSC41-a-1 |
|
875: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
877: |
The string literal is embedded directly in the code: ]. Please report this as a serious bug! |
CERT_C-MSC41-a-1 |
|
884: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
884: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
884: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
886: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
886: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
886: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
887: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
887: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
887: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
888: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
888: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
888: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
890: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
903: |
Parameter 'from' is not validated before use |
CERT_C-API00-a-3 |
|
905: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
906: |
'while' statement in a function 'get_most_recent' should be followed by a block |
CERT_C-EXP19-a-2 |
|
932: |
Constructor 'PatchRelevanceInspector' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
932: |
Declare parameter 'after' as const |
CERT_C-DCL00-a-3 |
|
942: |
Parameter 'from' is not validated before use |
CERT_C-API00-a-3 |
|
944: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
945: |
Function 'less_than' called in the right-hand operand of a logical '&&' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
945: |
The 'const rmf_traffic::schedule::<unnamed>::PatchRelevanceInspector::RouteEntry *' pointer to object type should not be implicitly
converted to the integral type 'bool'
|
CERT_C-INT36-b-3 |
+
|
953: |
"from" may possibly be null |
BD-PB-NP-1 |
|
|
Source of null value
Database.cpp (945): while (from && rmf_utils::modular(_after).less_than(from->schedule_version)) *** Null value carrier: from *** Loop condition evaluation: (bool)from (assuming false) *** Loop condition evaluation: from && rmf_utils::modular(_after).less_than(from->schedule_version) (false) *** Not entering the loop
Null pointer dereferencing point
Database.cpp (953): from->successor.lock() *** Null value carrier: from |
|
+
|
953: |
"from" may possibly be null |
CERT_C-ERR33-c-1 |
|
|
Source of null value
Database.cpp (945): while (from && rmf_utils::modular(_after).less_than(from->schedule_version)) *** Null value carrier: from *** Loop condition evaluation: (bool)from (assuming false) *** Loop condition evaluation: from && rmf_utils::modular(_after).less_than(from->schedule_version) (false) *** Not entering the loop
Null pointer dereferencing point
Database.cpp (953): from->successor.lock() *** Null value carrier: from |
|
+
|
953: |
"from" may possibly be null |
CERT_C-EXP34-a-1 |
|
|
Source of null value
Database.cpp (945): while (from && rmf_utils::modular(_after).less_than(from->schedule_version)) *** Null value carrier: from *** Loop condition evaluation: (bool)from (assuming false) *** Loop condition evaluation: from && rmf_utils::modular(_after).less_than(from->schedule_version) (false) *** Not entering the loop
Null pointer dereferencing point
Database.cpp (953): from->successor.lock() *** Null value carrier: from |
|
+
|
953: |
"from" may possibly be null |
CERT_C-MSC19-b-3 |
|
|
Source of null value
Database.cpp (945): while (from && rmf_utils::modular(_after).less_than(from->schedule_version)) *** Null value carrier: from *** Loop condition evaluation: (bool)from (assuming false) *** Loop condition evaluation: from && rmf_utils::modular(_after).less_than(from->schedule_version) (false) *** Not entering the loop
Null pointer dereferencing point
Database.cpp (953): from->successor.lock() *** Null value carrier: from |
|
+
|
953: |
"from" may possibly be null |
CERT_C-POS54-c-1 |
|
|
Source of null value
Database.cpp (945): while (from && rmf_utils::modular(_after).less_than(from->schedule_version)) *** Null value carrier: from *** Loop condition evaluation: (bool)from (assuming false) *** Loop condition evaluation: from && rmf_utils::modular(_after).less_than(from->schedule_version) (false) *** Not entering the loop
Null pointer dereferencing point
Database.cpp (953): from->successor.lock() *** Null value carrier: from |
|
+
|
953: |
"from" may possibly be null |
CERT_CPP-STR51-a-1 |
|
|
Source of null value
Database.cpp (945): while (from && rmf_utils::modular(_after).less_than(from->schedule_version)) *** Null value carrier: from *** Loop condition evaluation: (bool)from (assuming false) *** Loop condition evaluation: from && rmf_utils::modular(_after).less_than(from->schedule_version) (false) *** Not entering the loop
Null pointer dereferencing point
Database.cpp (953): from->successor.lock() *** Null value carrier: from |
|
|
965: |
Declare parameter 'entry' as const |
CERT_C-DCL00-a-3 |
|
965: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
977: |
The 'const rmf_traffic::schedule::<unnamed>::PatchRelevanceInspector::RouteEntry *' pointer to object type should not be implicitly
converted to the integral type 'bool'
|
CERT_C-INT36-b-3 |
|
988: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1006: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1022: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1022: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1022: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1031: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1031: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1031: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1060: |
Declare parameter 'entry' as const |
CERT_C-DCL00-a-3 |
|
1060: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
1066: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1066: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1066: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1088: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
1094: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1094: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1094: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1118: |
Declare parameter 'entry' as const |
CERT_C-DCL00-a-3 |
|
1123: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1123: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1123: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1149: |
Constructor 'ViewerAfterRelevanceInspector' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
1149: |
Declare parameter '_after' as const |
CERT_C-DCL00-a-3 |
|
1149: |
Reserved name '_after' used |
CERT_CPP-DCL51-d-3 |
|
1156: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
1163: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1163: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1163: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1181: |
Constructor 'CullRelevanceInspector' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
1181: |
The parameter 'cull_time' of function 'CullRelevanceInspector' is passed by value |
OPT-14-3 |
|
1198: |
Parameter 'entry' is not validated before use |
CERT_C-API00-a-3 |
|
1209: |
Assert contains function-like call to 'finish_time' |
CERT_C-PRE31-c-3 |
|
1209: |
Assert contains function-like call to 'trajectory' |
CERT_C-PRE31-c-3 |
|
1209: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1212: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1212: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1212: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1223: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
1230: |
Parameter 'spacetime' is not validated before use |
CERT_C-API00-a-3 |
|
1231: |
Parameter 'participants' is not validated before use |
CERT_C-API00-a-3 |
|
1246: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
1246: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
1263: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
1273: |
'for' statement in a function 'get_itinerary' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1281: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
1293: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
1293: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
1304: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
1304: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
1315: |
Declare parameter 'dep' as const |
CERT_C-DCL00-a-3 |
|
1315: |
Parameter 'dep' is not validated before use |
CERT_C-API00-a-3 |
|
1315: |
The parameter 'dep' of function 'watch_dependency' is passed by value |
OPT-14-3 |
|
1316: |
Parameter 'on_reached' is not validated before use |
CERT_C-API00-a-3 |
|
1316: |
The parameter 'on_reached' of function 'watch_dependency' is passed by value |
OPT-14-3 |
|
1317: |
Parameter 'on_deprecated' is not validated before use |
CERT_C-API00-a-3 |
|
1317: |
The parameter 'on_deprecated' of function 'watch_dependency' is passed by value |
OPT-14-3 |
+
|
1392: |
Method "changes" is calling itself |
CERT_C-MEM05-a-2 |
|
|
Recursive method header
Database.cpp (1392): auto Database::changes(
Recursive method call
Database.cpp (1403): changes(...) |
|
|
1393: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
1394: |
The parameter 'after' of function 'changes' is passed by value |
OPT-14-3 |
|
1433: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1433: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1433: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1451: |
Use parenthesis to clarify order ('<' is the second operand of '||') |
CERT_C-EXP00-a-3 |
|
1459: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1459: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1459: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1471: |
Use parenthesis to clarify order ('<' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
1484: |
Parameter 'after' is not validated before use |
CERT_C-API00-a-3 |
|
1484: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
1494: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
1494: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
1494: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
1494: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
1494: |
The parameter 'time' of function 'cull' is passed by value |
OPT-14-3 |
|
1497: |
Unused function's "set_upper_time_bound" return value |
CERT_C-ERR33-a-1 |
|
1497: |
Unused function's "set_upper_time_bound" return value |
CERT_C-POS54-a-1 |
|
1497: |
Unused function's "set_upper_time_bound" return value |
CERT_C-EXP12-a-3 |
|
1508: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
1508: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1512: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
1512: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1514: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
1514: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
1514: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
1526: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
1526: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1528: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
1528: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
1528: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
1532: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
1532: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
1532: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
1535: |
The '++' operator should cause the only side effect in an expression |
CERT_C-FIO41-e-3 |
|
1555: |
Declare parameter 'time' as const |
CERT_C-DCL00-a-3 |
|
1555: |
Parameter 'time' is not validated before use |
CERT_C-API00-a-3 |
|
1555: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
1555: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
1555: |
The parameter 'time' of function 'set_current_time' is passed by value |
OPT-14-3 |
|
1561: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
1561: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
1568: |
The string literal is embedded directly in the code: [Database::itinerary_version] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
1569: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
1577: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
1577: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
1583: |
The string literal is embedded directly in the code: [Database::lastest_plan_id] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
1584: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
1591: |
Declare parameter 'participant' as const |
CERT_C-DCL00-a-3 |
|
1591: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
1597: |
The string literal is embedded directly in the code: [Database::latest_storage_id] No participant with ID [ |
CERT_C-MSC41-a-1 |
|
1598: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/schedule/DependencyTracker.cpp |
|
26: |
Declare parameter 'dep' as const |
CERT_C-DCL00-a-3 |
|
26: |
Parameter 'dep' is not validated before use |
CERT_C-API00-a-3 |
|
26: |
Parameter 'shared' is not validated before use |
CERT_C-API00-a-3 |
|
26: |
The parameter 'dep' of function 'add' is passed by value |
OPT-14-3 |
|
28: |
Declare local variable 'lock' as const |
CERT_C-DCL00-a-3 |
|
35: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
36: |
Parameter 'plan' is not validated before use |
CERT_C-API00-a-3 |
|
39: |
Declare local variable 'lock' as const |
CERT_C-DCL00-a-3 |
|
44: |
'for' statement in a function 'reached' should be followed by a block |
CERT_C-EXP19-a-2 |
|
62: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
62: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
62: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
69: |
Value 7 is out of acceptable range: 'lower than 7' |
METRIC.NBD-3 |
|
70: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
73: |
Declare local variable 'lock' as const |
CERT_C-DCL00-a-3 |
|
99: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
99: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
99: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
107: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
109: |
Declare local variable 'lock' as const |
CERT_C-DCL00-a-3 |
|
128: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
128: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
128: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/DependencyTracker.hpp |
|
43: |
The parameter 'dep' of function 'add' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Inconsistencies.cpp |
|
40: |
Declare parameter 'last_known_version_' as const |
CERT_C-DCL00-a-3 |
|
51: |
Parameter 'it' is not validated before use |
CERT_C-API00-a-3 |
|
51: |
The parameter 'it' of function 'make_iterator' is passed by value |
OPT-14-3 |
|
60: |
Parameter 'set' is not validated before use |
CERT_C-API00-a-3 |
|
61: |
Parameter 'last_known_version' is not validated before use |
CERT_C-API00-a-3 |
|
70: |
Parameter 'ranges' is not validated before use |
CERT_C-API00-a-3 |
|
116: |
Parameter 'inconsistencies' is not validated before use |
CERT_C-API00-a-3 |
|
117: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
118: |
Parameter 'last_known_version' is not validated before use |
CERT_C-API00-a-3 |
|
120: |
Reserved name '_inconsistencies' used |
CERT_CPP-DCL51-d-3 |
|
120: |
The local variable '_inconsistencies' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
121: |
Reserved name '_api' used |
CERT_CPP-DCL51-d-3 |
|
121: |
The local variable '_api' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
123: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
123: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
123: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
125: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
142: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
142: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
144: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
144: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
144: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
145: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
145: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
145: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
175: |
Declare local variable 'original' as const |
CERT_C-DCL00-a-3 |
|
180: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
185: |
Parameter 'other' is not validated before use |
CERT_C-API00-a-3 |
|
196: |
Parameter 'it' is not validated before use |
CERT_C-API00-a-3 |
|
196: |
The parameter 'it' of function 'make_iterator' is passed by value |
OPT-14-3 |
|
230: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/InconsistenciesInternal.hpp |
|
57: |
The parameter 'it' of function 'make_iterator' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/InconsistencyTracker.cpp |
|
37: |
Declare parameter 'change' as const |
CERT_C-DCL00-a-3 |
|
37: |
Parameter 'change' is not validated before use |
CERT_C-API00-a-3 |
|
37: |
The parameter 'change' of function 'set' is passed by value |
OPT-14-3 |
|
58: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
67: |
Destructor '~Ticket' should not call function '_apply_changes' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
67: |
Destructor '~Ticket' should not call function '_apply_changes' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
103: |
Assert contains function-like call to 'less_than' |
CERT_C-PRE31-c-3 |
|
103: |
Assert contains function-like call to 'modular' |
CERT_C-PRE31-c-3 |
|
103: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
106: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
106: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
106: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
143: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
143: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
143: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
144: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
144: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
181: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
181: |
Assert contains function-like call to 'rbegin' |
CERT_C-PRE31-c-3 |
|
181: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
198: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
198: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
212: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
212: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
212: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
223: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
268: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
268: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
268: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
281: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
281: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
281: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
305: |
Assert contains function-like call to 'less_than' |
CERT_C-PRE31-c-3 |
|
305: |
Assert contains function-like call to 'modular' |
CERT_C-PRE31-c-3 |
|
305: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
307: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
307: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
307: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
308: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
308: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
308: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
315: |
Assert contains function-like call to 'less_than' |
CERT_C-PRE31-c-3 |
|
315: |
Assert contains function-like call to 'modular' |
CERT_C-PRE31-c-3 |
|
315: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
324: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
324: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
324: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
333: |
Assert contains function-like call to 'less_than' |
CERT_C-PRE31-c-3 |
|
333: |
Assert contains function-like call to 'modular' |
CERT_C-PRE31-c-3 |
|
333: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
340: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
340: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
340: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
341: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
341: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
341: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
354: |
'for' statement in a function '_apply_changes' should be followed by a block |
CERT_C-EXP19-a-2 |
/rmf_traffic_testing/src/rmf_traffic/schedule/InconsistencyTracker.hpp |
|
40: |
Parameter 'lhs' is not validated before use |
CERT_C-API00-a-3 |
|
40: |
Parameter 'rhs' is not validated before use |
CERT_C-API00-a-3 |
|
75: |
The parameter 'change' of function 'set' is passed by value |
OPT-14-3 |
|
81: |
Names shall be given for all the parameters in function 'Ticket' |
CERT_C-EXP37-a-3 |
|
82: |
Names shall be given for all the parameters in function '=' |
CERT_C-EXP37-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Mirror.cpp |
|
77: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
78: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
79: |
Parameter 'erase' is not validated before use |
CERT_C-API00-a-3 |
|
86: |
The string literal is embedded directly in the code: [Mirror::update] Erasing unrecognized route [ |
CERT_C-MSC41-a-1 |
|
87: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
87: |
The string literal is embedded directly in the code: ] for participant [ |
CERT_C-MSC41-a-1 |
|
91: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
91: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
91: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
96: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
97: |
Parameter 'delay' is not validated before use |
CERT_C-API00-a-3 |
|
102: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
103: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
111: |
Declare local variable 'new_entry' as const |
CERT_C-DCL00-a-3 |
|
119: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
120: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
121: |
Parameter 'route_id' is not validated before use |
CERT_C-API00-a-3 |
|
122: |
Parameter 'storage_id' is not validated before use |
CERT_C-API00-a-3 |
|
123: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
129: |
The string literal is embedded directly in the code: [Mirror::update] Inserting a route at storage_id [ |
CERT_C-MSC41-a-1 |
|
130: |
The string literal is embedded directly in the code: ] which is already used for participant [ |
CERT_C-MSC41-a-1 |
|
131: |
The string literal is embedded directly in the code: ] |
CERT_C-MSC41-a-1 |
|
151: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
156: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
157: |
Parameter 'state' is not validated before use |
CERT_C-API00-a-3 |
|
158: |
Parameter 'add' is not validated before use |
CERT_C-API00-a-3 |
|
185: |
Declare parameter 'entry' as const |
CERT_C-DCL00-a-3 |
|
188: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
189: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
192: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
192: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
192: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
221: |
Declare parameter 'entry' as const |
CERT_C-DCL00-a-3 |
|
224: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
225: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
227: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
227: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
227: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
235: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
242: |
Parameter 'spacetime' is not validated before use |
CERT_C-API00-a-3 |
|
243: |
Parameter 'participants' is not validated before use |
CERT_C-API00-a-3 |
|
258: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
258: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
275: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
292: |
'for' statement in a function 'get_itinerary' should be followed by a block |
CERT_C-EXP19-a-2 |
|
300: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
311: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
311: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
322: |
Declare parameter 'dep' as const |
CERT_C-DCL00-a-3 |
|
322: |
Parameter 'dep' is not validated before use |
CERT_C-API00-a-3 |
|
322: |
The parameter 'dep' of function 'watch_dependency' is passed by value |
OPT-14-3 |
|
323: |
Parameter 'on_reached' is not validated before use |
CERT_C-API00-a-3 |
|
323: |
The parameter 'on_reached' of function 'watch_dependency' is passed by value |
OPT-14-3 |
|
324: |
Parameter 'on_deprecated' is not validated before use |
CERT_C-API00-a-3 |
|
324: |
The parameter 'on_deprecated' of function 'watch_dependency' is passed by value |
OPT-14-3 |
|
368: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
368: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
402: |
Parameter 'participants' is not validated before use |
CERT_C-API00-a-3 |
|
413: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
413: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
413: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
420: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
420: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
420: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
421: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
421: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
421: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
422: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
422: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
422: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
436: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
436: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
436: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
437: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
437: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
437: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
489: |
'for' statement in a function 'update' should be followed by a block |
CERT_C-EXP19-a-2 |
|
510: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
510: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
510: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
515: |
'for' statement in a function 'update' should be followed by a block |
CERT_C-EXP19-a-2 |
|
532: |
Declare local variable 'cull' as const |
CERT_C-DCL00-a-3 |
|
532: |
Variable "cull" should be declared as locally as possible |
CERT_C-DCL19-a-3 |
|
534: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
534: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
536: |
Unused function's "set_upper_time_bound" return value |
CERT_C-ERR33-a-1 |
|
536: |
Unused function's "set_upper_time_bound" return value |
CERT_C-POS54-a-1 |
|
536: |
Unused function's "set_upper_time_bound" return value |
CERT_C-EXP12-a-3 |
|
544: |
Declare local variable 'p_it' as const |
CERT_C-DCL00-a-3 |
|
545: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
545: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
548: |
The string literal is embedded directly in the code: [Mirror::update] Non-existent participant [ |
CERT_C-MSC41-a-1 |
|
549: |
The string literal is embedded directly in the code: ] in timeline entry |
CERT_C-MSC41-a-1 |
|
553: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
553: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
553: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
584: |
Function 'fork' passes return value by value |
CERT_CPP-OOP51-a-3 |
|
606: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
606: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
606: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
634: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::Mirror] |
CERT_C-MSC41-a-1 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Negotiation.cpp |
|
30: |
Parameter 'N' is not validated before use |
CERT_C-API00-a-3 |
|
63: |
Parameter 'depth' is not validated before use |
CERT_C-API00-a-3 |
|
64: |
Parameter 'num_participants' is not validated before use |
CERT_C-API00-a-3 |
|
101: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
101: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
101: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
115: |
No constructor. All member variables: 'participant, plan_id, route_id, type' should be initialized in constructor |
INIT-06-1 |
|
133: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
134: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
135: |
Parameter 'route_id' is not validated before use |
CERT_C-API00-a-3 |
|
136: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
137: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
154: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
155: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
156: |
Parameter 'route_id' is not validated before use |
CERT_C-API00-a-3 |
|
157: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
158: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
177: |
No constructor. All member variables: 'forfeited, rejected' should be initialized in constructor |
INIT-06-1 |
|
214: |
Parameter 'initial_endpoints' is not validated before use |
CERT_C-API00-a-3 |
|
215: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
216: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
217: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
218: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
+
|
229: |
Value of "route_id" is never used |
CERT_C-DCL22-a-3 |
|
|
Point where value is declared
Point where value is declared
Negotiation.cpp (229): route_id = i; |
|
|
235: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
235: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
235: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
245: |
Parameter 'final_endpoints' is not validated before use |
CERT_C-API00-a-3 |
|
246: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
247: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
248: |
Parameter 'description' is not validated before use |
CERT_C-API00-a-3 |
|
249: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
+
|
260: |
Value of "route_id" is never used |
CERT_C-DCL22-a-3 |
|
|
Point where value is declared
Point where value is declared
Negotiation.cpp (260): route_id = i; |
|
|
266: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
266: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
266: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
324: |
Declare local variable 'initial' as const |
CERT_C-DCL00-a-3 |
|
363: |
Names shall be given for all the parameters in function 'DefunctFlag' |
CERT_C-EXP37-a-3 |
|
364: |
Names shall be given for all the parameters in function '=' |
CERT_C-EXP37-a-3 |
|
366: |
Names shall be given for all the parameters in function 'DefunctFlag' |
CERT_C-EXP37-a-3 |
|
367: |
Names shall be given for all the parameters in function '=' |
CERT_C-EXP37-a-3 |
|
371: |
Destructor '~DefunctFlag' should not call function 'operator bool' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
371: |
Destructor '~DefunctFlag' should not call function 'operator bool' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
422: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
423: |
Undefined character was found inside comment |
CERT_C-MSC09-a-3 |
|
448: |
Declare parameter 'participant_' as const |
CERT_C-DCL00-a-3 |
|
449: |
Declare parameter 'depth_' as const |
CERT_C-DCL00-a-3 |
|
450: |
Parameter 'submitted_' is not validated before use |
CERT_C-API00-a-3 |
|
450: |
The parameter 'submitted_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
451: |
Parameter 'unsubmitted_' is not validated before use |
CERT_C-API00-a-3 |
|
451: |
The parameter 'unsubmitted_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
452: |
The parameter 'initial_proposal_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
469: |
The local variable 'participant' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
476: |
Declare local variable 'entry' as const |
CERT_C-DCL00-a-3 |
|
494: |
'for' statement in a function 'Implementation' should be followed by a block |
CERT_C-EXP19-a-2 |
|
497: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
497: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
497: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
510: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
510: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
511: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
511: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
511: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
513: |
Assert contains function-like call to 'begin' |
CERT_C-PRE31-c-3 |
|
513: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
513: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
514: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
514: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
517: |
Parameter 'new_participant' is not validated before use |
CERT_C-API00-a-3 |
|
519: |
Assert contains function-like call to 'begin' |
CERT_C-PRE31-c-3 |
|
519: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
519: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
520: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
520: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
522: |
Assert contains function-like call to 'begin' |
CERT_C-PRE31-c-3 |
|
522: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
522: |
Assert contains function-like call to 'find_if' |
CERT_C-PRE31-c-3 |
|
522: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
526: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
540: |
Assert contains function-like call to 'has_value' |
CERT_C-PRE31-c-3 |
|
540: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
541: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
541: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
543: |
Assert contains function-like call to 'begin' |
CERT_C-PRE31-c-3 |
|
543: |
Assert contains function-like call to 'find' |
CERT_C-PRE31-c-3 |
|
543: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
544: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
544: |
Assert contains function-like call to 'end' |
CERT_C-PRE31-c-3 |
|
546: |
Declare local variable 'descendants' as const |
CERT_C-DCL00-a-3 |
|
546: |
The local variable 'descendants' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
547: |
'for' statement in a function 'make_descendants' should be followed by a block |
CERT_C-EXP19-a-2 |
|
551: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
558: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
558: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
558: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
562: |
Parameter 'schedule_viewer' is not validated before use |
CERT_C-API00-a-3 |
|
563: |
Parameter 'negotiation_data' is not validated before use |
CERT_C-API00-a-3 |
|
564: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
565: |
Parameter 'participants' is not validated before use |
CERT_C-API00-a-3 |
|
576: |
Parameter 'table' is not validated before use |
CERT_C-API00-a-3 |
|
581: |
Parameter 'table' is not validated before use |
CERT_C-API00-a-3 |
|
587: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
588: |
Parameter 'new_itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
588: |
The parameter 'new_itinerary' of function 'submit' is passed by value |
OPT-14-3 |
|
602: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
602: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
602: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
606: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
642: |
Parameter 'participant' is not validated before use |
CERT_C-API00-a-3 |
|
656: |
Declare local variable 'entry' as const |
CERT_C-DCL00-a-3 |
|
673: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
673: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
673: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
681: |
Declare parameter 'rejected_by' as const |
CERT_C-DCL00-a-3 |
|
681: |
Parameter 'rejected_by' is not validated before use |
CERT_C-API00-a-3 |
|
682: |
Parameter 'offered_alternatives' is not validated before use |
CERT_C-API00-a-3 |
|
682: |
The parameter 'offered_alternatives' of function 'reject' is passed by value |
OPT-14-3 |
|
769: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
769: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
769: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
790: |
Declare local variable 'top' as const |
CERT_C-DCL00-a-3 |
|
802: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
802: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
802: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
817: |
Class Implementation has a non-trivial destructor, but no copy constructor nor copy assignment operator |
CERT_CPP-MEM51-c-1 |
|
823: |
Parameter 'participants_' is not validated before use |
CERT_C-API00-a-3 |
|
823: |
The parameter 'participants_' of function 'Implementation' is passed by value |
OPT-14-3 |
|
827: |
'for' statement in a function 'Implementation' should be followed by a block |
CERT_C-EXP19-a-2 |
|
828: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
828: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
828: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
847: |
Parameter 'map' is not validated before use |
CERT_C-API00-a-3 |
|
847: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
876: |
Parameter 'table' is not validated before use |
CERT_C-API00-a-3 |
|
878: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
878: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
878: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
878: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
882: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
898: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
904: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
905: |
Parameter 'to_accommodate' is not validated before use |
CERT_C-API00-a-3 |
|
907: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
907: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
907: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
907: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
947: |
Parameter 'sequence' is not validated before use |
CERT_C-API00-a-3 |
|
949: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
949: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
949: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
949: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
954: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
970: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
972: |
Declare local variable 'output' as const |
CERT_C-DCL00-a-3 |
|
980: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
981: |
Parameter 'to_accommodate' is not validated before use |
CERT_C-API00-a-3 |
|
983: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
983: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
983: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
983: |
Cast from 'const rmf_traffic::schedule::Negotiation::Implementation' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
983: |
Declare local variable 'output' as const |
CERT_C-DCL00-a-3 |
|
994: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::Negotiation::add_participant] Participant [ |
CERT_C-MSC41-a-1 |
|
996: |
The string literal is embedded directly in the code: ] is already present in the Negotiation |
CERT_C-MSC41-a-1 |
|
1018: |
'for' statement in a function 'add_participant' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1026: |
Declare local variable 'next' as const |
CERT_C-DCL00-a-3 |
|
1029: |
Declare local variable 'element' as const |
CERT_C-DCL00-a-3 |
|
1041: |
'for' statement in a function 'add_participant' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1041: |
Declare local variable 't' as const |
CERT_C-DCL00-a-3 |
|
1053: |
Destructor '~Implementation' should not call function 'vector' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
1053: |
Destructor '~Implementation' should not call function 'vector' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
1054: |
'for' statement in a function '~Implementation' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1055: |
Destructor '~Implementation' should not call function 'get' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
1055: |
Destructor '~Implementation' should not call function 'get' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
1055: |
Destructor '~Implementation' should not call function 'push_back' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
1055: |
Destructor '~Implementation' should not call function 'push_back' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
1059: |
Declare local variable 'top' as const |
CERT_C-DCL00-a-3 |
|
1064: |
Destructor '~Implementation' should not call function 'get' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
1064: |
Destructor '~Implementation' should not call function 'get' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
1065: |
Destructor '~Implementation' should not call function 'terminate' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
1065: |
Destructor '~Implementation' should not call function 'terminate' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
1066: |
Destructor '~Implementation' should not call function 'push_back' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
1066: |
Destructor '~Implementation' should not call function 'push_back' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
1075: |
Parameter 'participants' is not validated before use |
CERT_C-API00-a-3 |
|
1075: |
The parameter 'participants' of function 'make' is passed by value |
OPT-14-3 |
|
1094: |
Parameter 'schedule_viewer' is not validated before use |
CERT_C-API00-a-3 |
|
1095: |
Parameter 'participants' is not validated before use |
CERT_C-API00-a-3 |
|
1095: |
The parameter 'participants' of function 'make_shared' is passed by value |
OPT-14-3 |
|
1111: |
Declare parameter 'p' as const |
CERT_C-DCL00-a-3 |
|
1111: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
1142: |
Declare parameter 'entry' as const |
CERT_C-DCL00-a-3 |
|
1145: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1148: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1148: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1148: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1163: |
Parameter 'spacetime' is not validated before use |
CERT_C-API00-a-3 |
|
1177: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1177: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1195: |
Parameter 'parameters' is not validated before use |
CERT_C-API00-a-3 |
|
1196: |
Parameter 'alternatives' is not validated before use |
CERT_C-API00-a-3 |
|
1250: |
Parameter 'alternatives' is not validated before use |
CERT_C-API00-a-3 |
|
1258: |
Parameter 'alternatives' is not validated before use |
CERT_C-API00-a-3 |
|
1278: |
Declare parameter 'participant_id' as const |
CERT_C-DCL00-a-3 |
|
1278: |
Parameter 'participant_id' is not validated before use |
CERT_C-API00-a-3 |
|
1304: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1338: |
Declare local variable 't' as const |
CERT_C-DCL00-a-3 |
|
1359: |
Declare local variable 't' as const |
CERT_C-DCL00-a-3 |
|
1443: |
'for' statement in a function 'unversioned_sequence' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1451: |
Declare parameter 'plan_id' as const |
CERT_C-DCL00-a-3 |
|
1451: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
1452: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
1452: |
The parameter 'itinerary' of function 'submit' is passed by value |
OPT-14-3 |
|
1453: |
Parameter 'version' is not validated before use |
CERT_C-API00-a-3 |
|
1460: |
Parameter 'version' is not validated before use |
CERT_C-API00-a-3 |
|
1461: |
Declare parameter 'rejected_by' as const |
CERT_C-DCL00-a-3 |
|
1461: |
Parameter 'rejected_by' is not validated before use |
CERT_C-API00-a-3 |
|
1462: |
Parameter 'rollouts' is not validated before use |
CERT_C-API00-a-3 |
|
1462: |
The parameter 'rollouts' of function 'reject' is passed by value |
OPT-14-3 |
|
1474: |
Declare parameter 'version' as const |
CERT_C-DCL00-a-3 |
|
1474: |
Parameter 'version' is not validated before use |
CERT_C-API00-a-3 |
|
1492: |
Parameter 'by_participant' is not validated before use |
CERT_C-API00-a-3 |
|
1502: |
Parameter 'by_participant' is not validated before use |
CERT_C-API00-a-3 |
|
1505: |
Cast from 'const rmf_traffic::schedule::Negotiation::Table' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
1505: |
Cast from 'const rmf_traffic::schedule::Negotiation::Table' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
1505: |
Cast from 'const rmf_traffic::schedule::Negotiation::Table' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
1505: |
Cast from 'const rmf_traffic::schedule::Negotiation::Table' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
1524: |
'for' statement in a function 'children' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1533: |
'for' statement in a function 'children' should be followed by a block |
CERT_C-EXP19-a-2 |
|
1552: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
1553: |
Parameter 'to_accommodate' is not validated before use |
CERT_C-API00-a-3 |
|
1560: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
1561: |
Parameter 'to_accommodate' is not validated before use |
CERT_C-API00-a-3 |
|
1568: |
Parameter 'sequence' is not validated before use |
CERT_C-API00-a-3 |
|
1575: |
Parameter 'sequence' is not validated before use |
CERT_C-API00-a-3 |
|
1582: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
1583: |
Parameter 'to_accommodate' is not validated before use |
CERT_C-API00-a-3 |
|
1590: |
Parameter 'for_participant' is not validated before use |
CERT_C-API00-a-3 |
|
1591: |
Parameter 'to_accommodate' is not validated before use |
CERT_C-API00-a-3 |
|
1598: |
Parameter 'sequence' is not validated before use |
CERT_C-API00-a-3 |
|
1605: |
Parameter 'sequence' is not validated before use |
CERT_C-API00-a-3 |
|
1612: |
Parameter 'evaluator' is not validated before use |
CERT_C-API00-a-3 |
|
1624: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1627: |
Assert contains function-like call to 'get' |
CERT_C-PRE31-c-3 |
|
1627: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1628: |
Assert contains function-like call to 'get' |
CERT_C-PRE31-c-3 |
|
1628: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1629: |
Assert contains function-like call to 'get' |
CERT_C-PRE31-c-3 |
|
1629: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1629: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1630: |
Assert contains function-like call to 'empty' |
CERT_C-PRE31-c-3 |
|
1630: |
Assert contains function-like call to 'get' |
CERT_C-PRE31-c-3 |
|
1630: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1632: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1632: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1632: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1633: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
1633: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
1633: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
1637: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1637: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
+
|
1639: |
The "tables" variable may be accessed out of bounds at index "choice", which may be greater or equal to the container size |
CERT_CPP-CTR50-a-2 |
|
|
Start of the path
Negotiation.cpp (1612): auto Negotiation::evaluate(const Evaluator& evaluator) const -> ConstTablePtr
Negotiation.cpp (1614): const auto& successes = _pimpl->data->successful_tables;
Negotiation.cpp (1615): if (successes.empty()) *** Condition evaluation: successes.empty() (assuming false)
Negotiation.cpp (1618): std::vector<const Proposal*> proposals;
Negotiation.cpp (1619): std::vector<ConstTablePtr> tables;
Negotiation.cpp (1620): proposals.reserve(successes.size());
Negotiation.cpp (1621): for (const auto& s : successes) *** Loop condition evaluation: operator!=(...) (assuming false) *** Not entering the loop
Negotiation.cpp (1636): const std::size_t choice = evaluator.choose(proposals);
Out of bounds access point
Negotiation.cpp (1639): tables[choice] |
|
+
|
1639: |
The "tables" variable may be accessed out of bounds at index "choice", which may be greater or equal to the container size |
CERT_CPP-STR53-a-2 |
|
|
Start of the path
Negotiation.cpp (1612): auto Negotiation::evaluate(const Evaluator& evaluator) const -> ConstTablePtr
Negotiation.cpp (1614): const auto& successes = _pimpl->data->successful_tables;
Negotiation.cpp (1615): if (successes.empty()) *** Condition evaluation: successes.empty() (assuming false)
Negotiation.cpp (1618): std::vector<const Proposal*> proposals;
Negotiation.cpp (1619): std::vector<ConstTablePtr> tables;
Negotiation.cpp (1620): proposals.reserve(successes.size());
Negotiation.cpp (1621): for (const auto& s : successes) *** Loop condition evaluation: operator!=(...) (assuming false) *** Not entering the loop
Negotiation.cpp (1636): const std::size_t choice = evaluator.choose(proposals);
Out of bounds access point
Negotiation.cpp (1639): tables[choice] |
|
|
1655: |
Declare local variable 't' as const |
CERT_C-DCL00-a-3 |
|
1674: |
Parameter 'proposals' is not validated before use |
CERT_C-API00-a-3 |
|
1709: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1709: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1709: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1716: |
Implicit conversion from integral to floating type in initialization |
CERT_C-EXP39-a-3 |
|
1720: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
1720: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
1722: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
1734: |
Assert contains function-like call to 'size' |
CERT_C-PRE31-c-3 |
|
1734: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Negotiator.cpp |
|
39: |
Declare parameter 'report_blockers_' as const |
CERT_C-DCL00-a-3 |
|
52: |
Assert contains function-like call to 'version' |
CERT_C-PRE31-c-3 |
|
52: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
82: |
Declare parameter 'plan_id' as const |
CERT_C-DCL00-a-3 |
|
82: |
Parameter 'plan_id' is not validated before use |
CERT_C-API00-a-3 |
|
83: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
83: |
The parameter 'itinerary' of function 'submit' is passed by value |
OPT-14-3 |
|
84: |
Parameter 'approval_callback' is not validated before use |
CERT_C-API00-a-3 |
|
84: |
The parameter 'approval_callback' of function 'submit' is passed by value |
OPT-14-3 |
|
89: |
Unused function's "submit" return value |
CERT_C-ERR33-a-1 |
|
89: |
Unused function's "submit" return value |
CERT_C-POS54-a-1 |
|
89: |
Unused function's "submit" return value |
CERT_C-EXP12-a-3 |
|
94: |
Parameter 'alternatives' is not validated before use |
CERT_C-API00-a-3 |
|
98: |
Unused function's "reject" return value |
CERT_C-ERR33-a-1 |
|
98: |
Unused function's "reject" return value |
CERT_C-POS54-a-1 |
|
98: |
Unused function's "reject" return value |
CERT_C-EXP12-a-3 |
|
108: |
Parameter 'blockers' is not validated before use |
CERT_C-API00-a-3 |
|
115: |
'for' statement in a function 'forfeit' should be followed by a block |
CERT_C-EXP19-a-2 |
|
116: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
116: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
116: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Participant.cpp |
|
30: |
Parameter 'p' is not validated before use |
CERT_C-API00-a-3 |
|
38: |
The parameter 'description' of function 'Shared' is passed by value |
OPT-14-3 |
|
55: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
55: |
Parameter 'itinerary' is not validated before use |
CERT_C-API00-a-3 |
|
55: |
The parameter 'itinerary' of function 'set' is passed by value |
OPT-14-3 |
|
113: |
Parameter 'additional_routes' is not validated before use |
CERT_C-API00-a-3 |
|
113: |
The parameter 'additional_routes' of function 'extend' is passed by value |
OPT-14-3 |
|
122: |
The string literal is embedded directly in the code: [Participant::extend] Route [ |
CERT_C-MSC41-a-1 |
|
122: |
The string literal is embedded directly in the code: ] has a trajectory of size [ |
CERT_C-MSC41-a-1 |
|
123: |
The string literal is embedded directly in the code: ], but the minimum acceptable size is 2. |
CERT_C-MSC41-a-1 |
|
136: |
'for' statement in a function 'extend' should be followed by a block |
CERT_C-EXP19-a-2 |
|
155: |
Declare parameter 'delay' as const |
CERT_C-DCL00-a-3 |
|
155: |
Parameter 'delay' is not validated before use |
CERT_C-API00-a-3 |
|
155: |
The parameter 'delay' of function 'delay' is passed by value |
OPT-14-3 |
|
190: |
Declare parameter 'checkpoint' as const |
CERT_C-DCL00-a-3 |
|
190: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
190: |
Declare parameter 'route' as const |
CERT_C-DCL00-a-3 |
|
190: |
Parameter 'route' is not validated before use |
CERT_C-API00-a-3 |
|
234: |
The parameter 'description' of function 'make' is passed by value |
OPT-14-3 |
|
269: |
The string literal is embedded directly in the code: [Participant::Implementation::retransmit] Remote database has a |
CERT_C-MSC41-a-1 |
|
270: |
The string literal is embedded directly in the code: ] than [ |
CERT_C-MSC41-a-1 |
|
270: |
The string literal is embedded directly in the code: higher version number [ |
CERT_C-MSC41-a-1 |
|
271: |
The string literal is embedded directly in the code: ] the version number of the local |
CERT_C-MSC41-a-1 |
|
272: |
The string literal is embedded directly in the code: / |
CERT_C-MSC41-a-1 |
|
272: |
The string literal is embedded directly in the code: : |
CERT_C-MSC41-a-1 |
|
272: |
The string literal is embedded directly in the code: participant [ |
CERT_C-MSC41-a-1 |
|
273: |
The string literal is embedded directly in the code: ]. This may indicate that the remote |
CERT_C-MSC41-a-1 |
|
274: |
The string literal is embedded directly in the code: database is receiving participant updates from a conflicting |
CERT_C-MSC41-a-1 |
|
275: |
The string literal is embedded directly in the code: source. |
CERT_C-MSC41-a-1 |
|
282: |
Unused function's "set" return value |
CERT_C-ERR33-a-1 |
|
282: |
Unused function's "set" return value |
CERT_C-POS54-a-1 |
|
282: |
Unused function's "set" return value |
CERT_C-EXP12-a-3 |
|
290: |
Assert contains function-like call to 'less_than_or_equal' |
CERT_C-PRE31-c-3 |
|
290: |
Assert contains function-like call to 'modular' |
CERT_C-PRE31-c-3 |
|
290: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
309: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
311: |
'for' statement in a function 'retransmit' should be followed by a block |
CERT_C-EXP19-a-2 |
|
318: |
'for' statement in a function 'retransmit' should be followed by a block |
CERT_C-EXP19-a-2 |
|
327: |
The LHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
327: |
The RHS operand of binary operator is effectively boolean |
CERT_C-EXP46-b-2 |
|
351: |
Declare parameter 'new_id' as const |
CERT_C-DCL00-a-3 |
|
357: |
Unused function's "set" return value |
CERT_C-ERR33-a-1 |
|
357: |
Unused function's "set" return value |
CERT_C-POS54-a-1 |
|
357: |
Unused function's "set" return value |
CERT_C-EXP12-a-3 |
|
370: |
The parameter 'description' of function 'Implementation' is passed by value |
OPT-14-3 |
|
382: |
Destructor '~Shared' should not call function 'unregister_participant' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
382: |
Destructor '~Shared' should not call function 'unregister_participant' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
392: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
392: |
The parameter 'itinerary' of function 'set' is passed by value |
OPT-14-3 |
|
398: |
Declare parameter 'additional_routes' as const |
CERT_C-DCL00-a-3 |
|
398: |
The parameter 'additional_routes' of function 'extend' is passed by value |
OPT-14-3 |
|
404: |
Declare parameter 'delay' as const |
CERT_C-DCL00-a-3 |
|
404: |
The parameter 'delay' of function 'delay' is passed by value |
OPT-14-3 |
|
416: |
Declare parameter 'checkpoint' as const |
CERT_C-DCL00-a-3 |
|
416: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
416: |
Declare parameter 'route' as const |
CERT_C-DCL00-a-3 |
|
482: |
The parameter 'description' of function 'make_participant' is passed by value |
OPT-14-3 |
|
489: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::make_participant] A nullptr was given for the
`writer` argument. This is illegal.
|
CERT_C-MSC41-a-1 |
|
490: |
Undefined character was found |
CERT_C-MSC09-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/ParticipantDescription.cpp |
|
24: |
No constructor. All member variables: 'responsiveness' should be initialized in constructor |
INIT-06-1 |
|
37: |
The parameter 'name' of function 'ParticipantDescription' is passed by value |
OPT-14-3 |
|
38: |
The parameter 'owner' of function 'ParticipantDescription' is passed by value |
OPT-14-3 |
|
40: |
The parameter 'profile' of function 'ParticipantDescription' is passed by value |
OPT-14-3 |
|
57: |
Use parenthesis to clarify order ('==' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
68: |
The parameter 'value' of function 'name' is passed by value |
OPT-14-3 |
|
81: |
The parameter 'value' of function 'owner' is passed by value |
OPT-14-3 |
|
94: |
Declare parameter 'value' as const |
CERT_C-DCL00-a-3 |
|
107: |
The parameter 'new_profile' of function 'profile' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Patch.cpp |
|
25: |
No constructor. All member variables: 'id, itinerary_version' should be initialized in constructor |
INIT-06-1 |
|
41: |
The parameter 'erasures' of function 'Participant' is passed by value |
OPT-14-3 |
|
42: |
The parameter 'delays' of function 'Participant' is passed by value |
OPT-14-3 |
|
43: |
The parameter 'additions' of function 'Participant' is passed by value |
OPT-14-3 |
|
44: |
The parameter 'progress' of function 'Participant' is passed by value |
OPT-14-3 |
|
95: |
No constructor. All member variables: 'latest_version' should be initialized in constructor |
INIT-06-1 |
|
117: |
The parameter 'changes' of function 'Patch' is passed by value |
OPT-14-3 |
|
118: |
The parameter 'cull' of function 'Patch' is passed by value |
OPT-14-3 |
|
119: |
The parameter 'base_version' of function 'Patch' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Progress.cpp |
|
26: |
Declare parameter 'size' as const |
CERT_C-DCL00-a-3 |
|
36: |
The parameter 'new_version' of function 'update' is passed by value |
OPT-14-3 |
|
38: |
Use parenthesis to clarify order ('+' is the second operand of '<') |
CERT_C-EXP00-a-3 |
|
45: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
|
57: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
58: |
Declare parameter 'route' as const |
CERT_C-DCL00-a-3 |
|
59: |
Declare parameter 'checkpoint' as const |
CERT_C-DCL00-a-3 |
|
60: |
Declare parameter 'new_version' as const |
CERT_C-DCL00-a-3 |
|
60: |
The parameter 'new_version' of function 'buff' is passed by value |
OPT-14-3 |
|
62: |
Unused function's "update" return value |
CERT_C-ERR33-a-1 |
|
62: |
Unused function's "update" return value |
CERT_C-POS54-a-1 |
|
62: |
Unused function's "update" return value |
CERT_C-EXP12-a-3 |
|
66: |
Declare parameter 'itin_size' as const |
CERT_C-DCL00-a-3 |
|
66: |
Declare parameter 'plan' as const |
CERT_C-DCL00-a-3 |
|
77: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
77: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
77: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Query.cpp |
|
45: |
Declare parameter 'it' as const |
CERT_C-DCL00-a-3 |
|
45: |
The parameter 'it' of function 'make_iterator' is passed by value |
OPT-14-3 |
|
50: |
The parameter 'input_regions' of function 'make' is passed by value |
OPT-14-3 |
|
60: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
68: |
No constructor. All member variables: 'all_maps' should be initialized in constructor |
INIT-06-1 |
|
79: |
The parameter 'maps' of function 'make' is passed by value |
OPT-14-3 |
|
80: |
The parameter 'lower_bound' of function 'make' is passed by value |
OPT-14-3 |
|
81: |
The parameter 'upper_bound' of function 'make' is passed by value |
OPT-14-3 |
|
100: |
The parameter 'lower_bound' of function 'make' is passed by value |
OPT-14-3 |
|
101: |
The parameter 'upper_bound' of function 'make' is passed by value |
OPT-14-3 |
|
129: |
Constructor does not initialize members: 'mode' |
INIT-06-1 |
|
143: |
Unused function's "query_all" return value |
CERT_C-ERR33-a-1 |
|
143: |
Unused function's "query_all" return value |
CERT_C-POS54-a-1 |
|
143: |
Unused function's "query_all" return value |
CERT_C-EXP12-a-3 |
|
147: |
The parameter 'regions' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
150: |
Unused function's "query_regions" return value |
CERT_C-ERR33-a-1 |
|
150: |
Unused function's "query_regions" return value |
CERT_C-POS54-a-1 |
|
150: |
Unused function's "query_regions" return value |
CERT_C-EXP12-a-3 |
|
154: |
The parameter 'maps' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
157: |
Unused function's "query_timespan" return value |
CERT_C-ERR33-a-1 |
|
157: |
Unused function's "query_timespan" return value |
CERT_C-POS54-a-1 |
|
157: |
Unused function's "query_timespan" return value |
CERT_C-EXP12-a-3 |
|
162: |
The parameter 'maps' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
163: |
Declare parameter 'lower_bound' as const |
CERT_C-DCL00-a-3 |
|
163: |
The parameter 'lower_bound' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
166: |
Unused function's "query_timespan" return value |
CERT_C-ERR33-a-1 |
|
166: |
Unused function's "query_timespan" return value |
CERT_C-POS54-a-1 |
|
166: |
Unused function's "query_timespan" return value |
CERT_C-EXP12-a-3 |
|
171: |
The parameter 'maps' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
172: |
Declare parameter 'lower_bound' as const |
CERT_C-DCL00-a-3 |
|
172: |
The parameter 'lower_bound' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
173: |
Declare parameter 'upper_bound' as const |
CERT_C-DCL00-a-3 |
|
173: |
The parameter 'upper_bound' of function 'Spacetime' is passed by value |
OPT-14-3 |
|
176: |
Unused function's "query_timespan" return value |
CERT_C-ERR33-a-1 |
|
176: |
Unused function's "query_timespan" return value |
CERT_C-POS54-a-1 |
|
176: |
Unused function's "query_timespan" return value |
CERT_C-EXP12-a-3 |
|
193: |
The parameter 'region' of function 'push_back' is passed by value |
OPT-14-3 |
|
205: |
The parameter 'it' of function 'erase' is passed by value |
OPT-14-3 |
|
212: |
The parameter 'first' of function 'erase' is passed by value |
OPT-14-3 |
|
212: |
The parameter 'last' of function 'erase' is passed by value |
OPT-14-3 |
|
228: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
228: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
228: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
228: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
247: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
247: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
247: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
247: |
Cast from 'const rmf_traffic::schedule::Query::Spacetime::Regions::Implementation::RegionSet' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
270: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
281: |
Function 'end' called in the right-hand operand of a logical '&&' operator may cause side effect |
CERT_C-EXP02-a-3 |
|
283: |
Do not pass the nonstandard-layout type object to the '!=' function defined in the library that may not be ABI-compatible |
CERT_CPP-EXP60-a-1 |
|
283: |
Do not pass the nonstandard-layout type object to the '!=' function defined in the library that may not be ABI-compatible |
CERT_CPP-EXP60-a-1 |
|
302: |
Declare parameter 'map_name' as const |
CERT_C-DCL00-a-3 |
|
302: |
The parameter 'map_name' of function 'add_map' is passed by value |
OPT-14-3 |
|
304: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
304: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
304: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
312: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
312: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
312: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
330: |
Declare parameter 'query_all_maps' as const |
CERT_C-DCL00-a-3 |
|
346: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
346: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
346: |
The parameter 'time' of function 'set_lower_time_bound' is passed by value |
OPT-14-3 |
|
369: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
369: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
369: |
The parameter 'time' of function 'set_upper_time_bound' is passed by value |
OPT-14-3 |
|
389: |
The parameter 'regions' of function 'query_regions' is passed by value |
OPT-14-3 |
|
417: |
The parameter 'maps' of function 'query_timespan' is passed by value |
OPT-14-3 |
|
418: |
The parameter 'lower_bound' of function 'query_timespan' is passed by value |
OPT-14-3 |
|
419: |
The parameter 'upper_bound' of function 'query_timespan' is passed by value |
OPT-14-3 |
|
431: |
The parameter 'maps' of function 'query_timespan' is passed by value |
OPT-14-3 |
|
432: |
The parameter 'lower_bound' of function 'query_timespan' is passed by value |
OPT-14-3 |
|
444: |
The parameter 'maps' of function 'query_timespan' is passed by value |
OPT-14-3 |
|
457: |
Declare parameter 'query_all_maps' as const |
CERT_C-DCL00-a-3 |
|
488: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
498: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
549: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
558: |
Returned value from function 'uniquify' is passed by value |
OPT-14-3 |
|
558: |
The parameter 'ids' of function 'uniquify' is passed by value |
OPT-14-3 |
|
561: |
'for' statement in a function 'uniquify' should be followed by a block |
CERT_C-EXP19-a-2 |
|
562: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
562: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
562: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
579: |
The parameter 'ids' of function 'Include' is passed by value |
OPT-14-3 |
|
593: |
The parameter 'ids' of function 'set_ids' is passed by value |
OPT-14-3 |
|
607: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
624: |
The parameter 'ids' of function 'Exclude' is passed by value |
OPT-14-3 |
|
638: |
The parameter 'ids' of function 'set_ids' is passed by value |
OPT-14-3 |
|
652: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
674: |
The parameter 'ids' of function 'make_only' is passed by value |
OPT-14-3 |
|
682: |
Unused function's "set_ids" return value |
CERT_C-ERR33-a-1 |
|
682: |
Unused function's "set_ids" return value |
CERT_C-POS54-a-1 |
|
682: |
Unused function's "set_ids" return value |
CERT_C-EXP12-a-3 |
|
687: |
The parameter 'ids' of function 'make_all_except' is passed by value |
OPT-14-3 |
|
695: |
Unused function's "set_ids" return value |
CERT_C-ERR33-a-1 |
|
695: |
Unused function's "set_ids" return value |
CERT_C-POS54-a-1 |
|
695: |
Unused function's "set_ids" return value |
CERT_C-EXP12-a-3 |
|
717: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
717: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
717: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
717: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
732: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
732: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
732: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
732: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
736: |
The parameter 'ids' of function 'include' is passed by value |
OPT-14-3 |
|
755: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP05-a-2 |
|
755: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_CPP-EXP55-a-2 |
|
755: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP40-a-3 |
|
755: |
Cast from 'const rmf_traffic::schedule::Query::Participants *' removes 'const' qualifier |
CERT_C-EXP32-a-2 |
|
759: |
The parameter 'ids' of function 'exclude' is passed by value |
OPT-14-3 |
|
767: |
Function '==' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
804: |
The parameter 'regions' of function 'make_query' is passed by value |
OPT-14-3 |
|
807: |
Unused function's "query_regions" return value |
CERT_C-ERR33-a-1 |
|
807: |
Unused function's "query_regions" return value |
CERT_C-POS54-a-1 |
|
807: |
Unused function's "query_regions" return value |
CERT_C-EXP12-a-3 |
|
812: |
The parameter 'maps' of function 'make_query' is passed by value |
OPT-14-3 |
|
813: |
Declare parameter 'start_time' as const |
CERT_C-DCL00-a-3 |
|
814: |
Declare parameter 'finish_time' as const |
CERT_C-DCL00-a-3 |
|
817: |
Unused function's "query_timespan" return value |
CERT_C-ERR33-a-1 |
|
817: |
Unused function's "query_timespan" return value |
CERT_C-POS54-a-1 |
|
817: |
Unused function's "query_timespan" return value |
CERT_C-EXP12-a-3 |
|
820: |
Unused function's "set_lower_time_bound" return value |
CERT_C-ERR33-a-1 |
|
820: |
Unused function's "set_lower_time_bound" return value |
CERT_C-POS54-a-1 |
|
820: |
Unused function's "set_lower_time_bound" return value |
CERT_C-EXP12-a-3 |
|
823: |
Unused function's "set_upper_time_bound" return value |
CERT_C-ERR33-a-1 |
|
823: |
Unused function's "set_upper_time_bound" return value |
CERT_C-POS54-a-1 |
|
823: |
Unused function's "set_upper_time_bound" return value |
CERT_C-EXP12-a-3 |
|
867: |
The parameter 'regions' of function 'make_query' is passed by value |
OPT-14-3 |
|
874: |
The parameter 'maps' of function 'make_query' is passed by value |
OPT-14-3 |
|
875: |
Declare parameter 'start_time' as const |
CERT_C-DCL00-a-3 |
|
876: |
Declare parameter 'finish_time' as const |
CERT_C-DCL00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Rectifier.cpp |
|
39: |
Declare parameter 'last_known_itinerary' as const |
CERT_C-DCL00-a-3 |
|
40: |
Declare parameter 'last_known_progress' as const |
CERT_C-DCL00-a-3 |
|
47: |
Declare parameter 'new_id' as const |
CERT_C-DCL00-a-3 |
|
109: |
The parameter 'rectifier' of function 'DatabaseRectificationRequester' is passed by value |
OPT-14-3 |
|
110: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
135: |
'for' statement in a function 'rectify' should be followed by a block |
CERT_C-EXP19-a-2 |
|
178: |
The parameter 'rectifier' of function 'make' is passed by value |
OPT-14-3 |
|
202: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
202: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
202: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
211: |
Declare parameter 'new_database' as const |
CERT_C-DCL00-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/StubbornNegotiator.cpp |
|
25: |
Function 'add_offset_itinerary' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
26: |
Declare parameter 'offset' as const |
CERT_C-DCL00-a-3 |
|
26: |
The parameter 'offset' of function 'add_offset_itinerary' is passed by value |
OPT-14-3 |
|
38: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
38: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
38: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
44: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
44: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
44: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
48: |
Function 'add_margins' has external linkage and is not declared in the header |
CERT_C-DCL15-a-3 |
|
54: |
'for' statement in a function 'add_margins' should be followed by a block |
CERT_C-EXP19-a-2 |
|
61: |
No constructor. All member variables: 'participant' should be initialized in constructor |
INIT-06-1 |
|
81: |
Declare parameter 'offset' as const |
CERT_C-DCL00-a-3 |
|
81: |
The parameter 'offset' of function 'test_candidate' is passed by value |
OPT-14-3 |
|
129: |
The parameter 'wait_times' of function 'acceptable_waits' is passed by value |
OPT-14-3 |
|
130: |
The parameter 'approval_cb' of function 'acceptable_waits' is passed by value |
OPT-14-3 |
|
139: |
The parameter 'margins' of function 'additional_margins' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Timeline.hpp |
|
33: |
Unnamed namespace in a header file was found |
CERT_CPP-DCL59-a-3 |
|
54: |
'for' statement in a function 'convert' should be followed by a block |
CERT_C-EXP19-a-2 |
|
55: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
55: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
55: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
72: |
Constructor 'Include' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
78: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
78: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
|
90: |
Constructor 'Exclude' allowing conversion should be made explicit |
CODSTA-CPP-04-1 |
|
96: |
Declare parameter 'id' as const |
CERT_C-DCL00-a-3 |
|
96: |
Parameter 'id' is not validated before use |
CERT_C-API00-a-3 |
+
|
163: |
"participants.include()" may possibly be null |
BD-PB-NP-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming true)
Timeline.hpp (163): participants.include()
Query.cpp (732): include()
Query.cpp (723): if (Mode::Include == _pimpl->mode) *** Condition evaluation: (Include == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (726): return nullptr; *** Null value carrier: <returned value of include()>
Query.cpp (732): return const_cast<Participants*>(this)->include(); *** Null value carrier: <returned value of include()> -> this.include() *** Null value carrier: this.include() -> <returned value of include()>
Null pointer dereferencing point
Timeline.hpp (163): ParticipantFilter::Include(participants.include()->get_ids()), *** Null value carrier: <returned value of include()> -> participants.include() *** Null value carrier: participants.include() |
|
+
|
163: |
"participants.include()" may possibly be null |
CERT_C-ERR33-c-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming true)
Timeline.hpp (163): participants.include()
Query.cpp (732): include()
Query.cpp (723): if (Mode::Include == _pimpl->mode) *** Condition evaluation: (Include == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (726): return nullptr; *** Null value carrier: <returned value of include()>
Query.cpp (732): return const_cast<Participants*>(this)->include(); *** Null value carrier: <returned value of include()> -> this.include() *** Null value carrier: this.include() -> <returned value of include()>
Null pointer dereferencing point
Timeline.hpp (163): ParticipantFilter::Include(participants.include()->get_ids()), *** Null value carrier: <returned value of include()> -> participants.include() *** Null value carrier: participants.include() |
|
+
|
163: |
"participants.include()" may possibly be null |
CERT_C-EXP34-a-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming true)
Timeline.hpp (163): participants.include()
Query.cpp (732): include()
Query.cpp (723): if (Mode::Include == _pimpl->mode) *** Condition evaluation: (Include == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (726): return nullptr; *** Null value carrier: <returned value of include()>
Query.cpp (732): return const_cast<Participants*>(this)->include(); *** Null value carrier: <returned value of include()> -> this.include() *** Null value carrier: this.include() -> <returned value of include()>
Null pointer dereferencing point
Timeline.hpp (163): ParticipantFilter::Include(participants.include()->get_ids()), *** Null value carrier: <returned value of include()> -> participants.include() *** Null value carrier: participants.include() |
|
+
|
163: |
"participants.include()" may possibly be null |
CERT_C-MSC19-b-3 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming true)
Timeline.hpp (163): participants.include()
Query.cpp (732): include()
Query.cpp (723): if (Mode::Include == _pimpl->mode) *** Condition evaluation: (Include == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (726): return nullptr; *** Null value carrier: <returned value of include()>
Query.cpp (732): return const_cast<Participants*>(this)->include(); *** Null value carrier: <returned value of include()> -> this.include() *** Null value carrier: this.include() -> <returned value of include()>
Null pointer dereferencing point
Timeline.hpp (163): ParticipantFilter::Include(participants.include()->get_ids()), *** Null value carrier: <returned value of include()> -> participants.include() *** Null value carrier: participants.include() |
|
+
|
163: |
"participants.include()" may possibly be null |
CERT_C-POS54-c-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming true)
Timeline.hpp (163): participants.include()
Query.cpp (732): include()
Query.cpp (723): if (Mode::Include == _pimpl->mode) *** Condition evaluation: (Include == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (726): return nullptr; *** Null value carrier: <returned value of include()>
Query.cpp (732): return const_cast<Participants*>(this)->include(); *** Null value carrier: <returned value of include()> -> this.include() *** Null value carrier: this.include() -> <returned value of include()>
Null pointer dereferencing point
Timeline.hpp (163): ParticipantFilter::Include(participants.include()->get_ids()), *** Null value carrier: <returned value of include()> -> participants.include() *** Null value carrier: participants.include() |
|
+
|
163: |
"participants.include()" may possibly be null |
CERT_CPP-STR51-a-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming true)
Timeline.hpp (163): participants.include()
Query.cpp (732): include()
Query.cpp (723): if (Mode::Include == _pimpl->mode) *** Condition evaluation: (Include == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (726): return nullptr; *** Null value carrier: <returned value of include()>
Query.cpp (732): return const_cast<Participants*>(this)->include(); *** Null value carrier: <returned value of include()> -> this.include() *** Null value carrier: this.include() -> <returned value of include()>
Null pointer dereferencing point
Timeline.hpp (163): ParticipantFilter::Include(participants.include()->get_ids()), *** Null value carrier: <returned value of include()> -> participants.include() *** Null value carrier: participants.include() |
|
+
|
170: |
"participants.exclude()" may possibly be null |
BD-PB-NP-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming false)
Timeline.hpp (166): else if (Query::Participants::Mode::Exclude == mode) *** Condition evaluation: (Exclude == mode) (assuming true)
Timeline.hpp (170): participants.exclude()
Query.cpp (755): exclude()
Query.cpp (746): if (Mode::Exclude == _pimpl->mode) *** Condition evaluation: (Exclude == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (749): return nullptr; *** Null value carrier: <returned value of exclude()>
Query.cpp (755): return const_cast<Participants*>(this)->exclude(); *** Null value carrier: <returned value of exclude()> -> this.exclude() *** Null value carrier: this.exclude() -> <returned value of exclude()>
Null pointer dereferencing point
Timeline.hpp (170): ParticipantFilter::Exclude(participants.exclude()->get_ids()), *** Null value carrier: <returned value of exclude()> -> participants.exclude() *** Null value carrier: participants.exclude() |
|
+
|
170: |
"participants.exclude()" may possibly be null |
CERT_C-ERR33-c-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming false)
Timeline.hpp (166): else if (Query::Participants::Mode::Exclude == mode) *** Condition evaluation: (Exclude == mode) (assuming true)
Timeline.hpp (170): participants.exclude()
Query.cpp (755): exclude()
Query.cpp (746): if (Mode::Exclude == _pimpl->mode) *** Condition evaluation: (Exclude == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (749): return nullptr; *** Null value carrier: <returned value of exclude()>
Query.cpp (755): return const_cast<Participants*>(this)->exclude(); *** Null value carrier: <returned value of exclude()> -> this.exclude() *** Null value carrier: this.exclude() -> <returned value of exclude()>
Null pointer dereferencing point
Timeline.hpp (170): ParticipantFilter::Exclude(participants.exclude()->get_ids()), *** Null value carrier: <returned value of exclude()> -> participants.exclude() *** Null value carrier: participants.exclude() |
|
+
|
170: |
"participants.exclude()" may possibly be null |
CERT_C-EXP34-a-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming false)
Timeline.hpp (166): else if (Query::Participants::Mode::Exclude == mode) *** Condition evaluation: (Exclude == mode) (assuming true)
Timeline.hpp (170): participants.exclude()
Query.cpp (755): exclude()
Query.cpp (746): if (Mode::Exclude == _pimpl->mode) *** Condition evaluation: (Exclude == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (749): return nullptr; *** Null value carrier: <returned value of exclude()>
Query.cpp (755): return const_cast<Participants*>(this)->exclude(); *** Null value carrier: <returned value of exclude()> -> this.exclude() *** Null value carrier: this.exclude() -> <returned value of exclude()>
Null pointer dereferencing point
Timeline.hpp (170): ParticipantFilter::Exclude(participants.exclude()->get_ids()), *** Null value carrier: <returned value of exclude()> -> participants.exclude() *** Null value carrier: participants.exclude() |
|
+
|
170: |
"participants.exclude()" may possibly be null |
CERT_C-MSC19-b-3 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming false)
Timeline.hpp (166): else if (Query::Participants::Mode::Exclude == mode) *** Condition evaluation: (Exclude == mode) (assuming true)
Timeline.hpp (170): participants.exclude()
Query.cpp (755): exclude()
Query.cpp (746): if (Mode::Exclude == _pimpl->mode) *** Condition evaluation: (Exclude == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (749): return nullptr; *** Null value carrier: <returned value of exclude()>
Query.cpp (755): return const_cast<Participants*>(this)->exclude(); *** Null value carrier: <returned value of exclude()> -> this.exclude() *** Null value carrier: this.exclude() -> <returned value of exclude()>
Null pointer dereferencing point
Timeline.hpp (170): ParticipantFilter::Exclude(participants.exclude()->get_ids()), *** Null value carrier: <returned value of exclude()> -> participants.exclude() *** Null value carrier: participants.exclude() |
|
+
|
170: |
"participants.exclude()" may possibly be null |
CERT_C-POS54-c-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming false)
Timeline.hpp (166): else if (Query::Participants::Mode::Exclude == mode) *** Condition evaluation: (Exclude == mode) (assuming true)
Timeline.hpp (170): participants.exclude()
Query.cpp (755): exclude()
Query.cpp (746): if (Mode::Exclude == _pimpl->mode) *** Condition evaluation: (Exclude == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (749): return nullptr; *** Null value carrier: <returned value of exclude()>
Query.cpp (755): return const_cast<Participants*>(this)->exclude(); *** Null value carrier: <returned value of exclude()> -> this.exclude() *** Null value carrier: this.exclude() -> <returned value of exclude()>
Null pointer dereferencing point
Timeline.hpp (170): ParticipantFilter::Exclude(participants.exclude()->get_ids()), *** Null value carrier: <returned value of exclude()> -> participants.exclude() *** Null value carrier: participants.exclude() |
|
+
|
170: |
"participants.exclude()" may possibly be null |
CERT_CPP-STR51-a-1 |
|
|
Timeline.hpp (150): const Query::Participants::Mode mode = participants.get_mode();
Query.cpp (702): return _pimpl->mode;
Timeline.hpp (152): if (Query::Participants::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (159): else if (Query::Participants::Mode::Include == mode) *** Condition evaluation: (Include == mode) (assuming false)
Timeline.hpp (166): else if (Query::Participants::Mode::Exclude == mode) *** Condition evaluation: (Exclude == mode) (assuming true)
Timeline.hpp (170): participants.exclude()
Query.cpp (755): exclude()
Query.cpp (746): if (Mode::Exclude == _pimpl->mode) *** Condition evaluation: (Exclude == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (749): return nullptr; *** Null value carrier: <returned value of exclude()>
Query.cpp (755): return const_cast<Participants*>(this)->exclude(); *** Null value carrier: <returned value of exclude()> -> this.exclude() *** Null value carrier: this.exclude() -> <returned value of exclude()>
Null pointer dereferencing point
Timeline.hpp (170): ParticipantFilter::Exclude(participants.exclude()->get_ids()), *** Null value carrier: <returned value of exclude()> -> participants.exclude() *** Null value carrier: participants.exclude() |
|
|
177: |
The string literal is embedded directly in the code: Unexpected Query::Participants mode: |
CERT_C-MSC41-a-1 |
|
204: |
Provide 'else' after the last 'else-if' construct |
CERT_C-MSC01-a-2 |
+
|
307: |
"timespan" may possibly be null |
BD-PB-NP-1 |
|
|
Timeline.hpp (193): const Query::Spacetime::Mode mode = spacetime.get_mode();
Query.cpp (182): return _pimpl->mode;
Timeline.hpp (195): if (Query::Spacetime::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (199): else if (Query::Spacetime::Mode::Regions == mode) *** Condition evaluation: (Regions == mode) (assuming false)
Timeline.hpp (204): else if (Query::Spacetime::Mode::Timespan == mode) *** Condition evaluation: (Timespan == mode) (assuming true)
Timeline.hpp (207): *spacetime.timespan(), participant_filter, inspector); *** Null value carrier: <returned value of timespan()> -> spacetime.timespan()
Query.cpp (481): if (Mode::Timespan == _pimpl->mode) *** Condition evaluation: (Timespan == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (484): return nullptr; *** Null value carrier: <returned value of timespan()>
Timeline.hpp (206): inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan()
Timeline.hpp (300): void inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan() -> timespan
Timeline.hpp (305): Checked checked;
Null pointer dereferencing point
Timeline.hpp (307): const Time* const lower_time_bound = timespan.get_lower_time_bound(); *** Null value carrier: timespan |
|
+
|
307: |
"timespan" may possibly be null |
CERT_C-ERR33-c-1 |
|
|
Timeline.hpp (193): const Query::Spacetime::Mode mode = spacetime.get_mode();
Query.cpp (182): return _pimpl->mode;
Timeline.hpp (195): if (Query::Spacetime::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (199): else if (Query::Spacetime::Mode::Regions == mode) *** Condition evaluation: (Regions == mode) (assuming false)
Timeline.hpp (204): else if (Query::Spacetime::Mode::Timespan == mode) *** Condition evaluation: (Timespan == mode) (assuming true)
Timeline.hpp (207): *spacetime.timespan(), participant_filter, inspector); *** Null value carrier: <returned value of timespan()> -> spacetime.timespan()
Query.cpp (481): if (Mode::Timespan == _pimpl->mode) *** Condition evaluation: (Timespan == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (484): return nullptr; *** Null value carrier: <returned value of timespan()>
Timeline.hpp (206): inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan()
Timeline.hpp (300): void inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan() -> timespan
Timeline.hpp (305): Checked checked;
Null pointer dereferencing point
Timeline.hpp (307): const Time* const lower_time_bound = timespan.get_lower_time_bound(); *** Null value carrier: timespan |
|
+
|
307: |
"timespan" may possibly be null |
CERT_C-EXP34-a-1 |
|
|
Timeline.hpp (193): const Query::Spacetime::Mode mode = spacetime.get_mode();
Query.cpp (182): return _pimpl->mode;
Timeline.hpp (195): if (Query::Spacetime::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (199): else if (Query::Spacetime::Mode::Regions == mode) *** Condition evaluation: (Regions == mode) (assuming false)
Timeline.hpp (204): else if (Query::Spacetime::Mode::Timespan == mode) *** Condition evaluation: (Timespan == mode) (assuming true)
Timeline.hpp (207): *spacetime.timespan(), participant_filter, inspector); *** Null value carrier: <returned value of timespan()> -> spacetime.timespan()
Query.cpp (481): if (Mode::Timespan == _pimpl->mode) *** Condition evaluation: (Timespan == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (484): return nullptr; *** Null value carrier: <returned value of timespan()>
Timeline.hpp (206): inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan()
Timeline.hpp (300): void inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan() -> timespan
Timeline.hpp (305): Checked checked;
Null pointer dereferencing point
Timeline.hpp (307): const Time* const lower_time_bound = timespan.get_lower_time_bound(); *** Null value carrier: timespan |
|
+
|
307: |
"timespan" may possibly be null |
CERT_C-MSC19-b-3 |
|
|
Timeline.hpp (193): const Query::Spacetime::Mode mode = spacetime.get_mode();
Query.cpp (182): return _pimpl->mode;
Timeline.hpp (195): if (Query::Spacetime::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (199): else if (Query::Spacetime::Mode::Regions == mode) *** Condition evaluation: (Regions == mode) (assuming false)
Timeline.hpp (204): else if (Query::Spacetime::Mode::Timespan == mode) *** Condition evaluation: (Timespan == mode) (assuming true)
Timeline.hpp (207): *spacetime.timespan(), participant_filter, inspector); *** Null value carrier: <returned value of timespan()> -> spacetime.timespan()
Query.cpp (481): if (Mode::Timespan == _pimpl->mode) *** Condition evaluation: (Timespan == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (484): return nullptr; *** Null value carrier: <returned value of timespan()>
Timeline.hpp (206): inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan()
Timeline.hpp (300): void inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan() -> timespan
Timeline.hpp (305): Checked checked;
Null pointer dereferencing point
Timeline.hpp (307): const Time* const lower_time_bound = timespan.get_lower_time_bound(); *** Null value carrier: timespan |
|
+
|
307: |
"timespan" may possibly be null |
CERT_C-POS54-c-1 |
|
|
Timeline.hpp (193): const Query::Spacetime::Mode mode = spacetime.get_mode();
Query.cpp (182): return _pimpl->mode;
Timeline.hpp (195): if (Query::Spacetime::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (199): else if (Query::Spacetime::Mode::Regions == mode) *** Condition evaluation: (Regions == mode) (assuming false)
Timeline.hpp (204): else if (Query::Spacetime::Mode::Timespan == mode) *** Condition evaluation: (Timespan == mode) (assuming true)
Timeline.hpp (207): *spacetime.timespan(), participant_filter, inspector); *** Null value carrier: <returned value of timespan()> -> spacetime.timespan()
Query.cpp (481): if (Mode::Timespan == _pimpl->mode) *** Condition evaluation: (Timespan == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (484): return nullptr; *** Null value carrier: <returned value of timespan()>
Timeline.hpp (206): inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan()
Timeline.hpp (300): void inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan() -> timespan
Timeline.hpp (305): Checked checked;
Null pointer dereferencing point
Timeline.hpp (307): const Time* const lower_time_bound = timespan.get_lower_time_bound(); *** Null value carrier: timespan |
|
+
|
307: |
"timespan" may possibly be null |
CERT_CPP-STR51-a-1 |
|
|
Timeline.hpp (193): const Query::Spacetime::Mode mode = spacetime.get_mode();
Query.cpp (182): return _pimpl->mode;
Timeline.hpp (195): if (Query::Spacetime::Mode::All == mode) *** Condition evaluation: (All == mode) (assuming false)
Timeline.hpp (199): else if (Query::Spacetime::Mode::Regions == mode) *** Condition evaluation: (Regions == mode) (assuming false)
Timeline.hpp (204): else if (Query::Spacetime::Mode::Timespan == mode) *** Condition evaluation: (Timespan == mode) (assuming true)
Timeline.hpp (207): *spacetime.timespan(), participant_filter, inspector); *** Null value carrier: <returned value of timespan()> -> spacetime.timespan()
Query.cpp (481): if (Mode::Timespan == _pimpl->mode) *** Condition evaluation: (Timespan == this->_pimpl.operator->()->mode) (assuming false)
Source of null value
Query.cpp (484): return nullptr; *** Null value carrier: <returned value of timespan()>
Timeline.hpp (206): inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan()
Timeline.hpp (300): void inspect_spacetime_timespan( *** Null value carrier: spacetime.timespan() -> timespan
Timeline.hpp (305): Checked checked;
Null pointer dereferencing point
Timeline.hpp (307): const Time* const lower_time_bound = timespan.get_lower_time_bound(); *** Null value carrier: timespan |
|
|
314: |
Assert contains function-like call to 'start_time' |
CERT_C-PRE31-c-3 |
|
314: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
464: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
471: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
471: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
471: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
479: |
Class Handle has a non-trivial destructor, but no copy constructor nor copy assignment operator |
CERT_CPP-MEM51-c-1 |
|
483: |
The parameter 'buckets' of function 'Handle' is passed by value |
OPT-14-3 |
|
495: |
Destructor '~Handle' should not call function 'operator bool' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
495: |
Destructor '~Handle' should not call function 'operator bool' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
498: |
Destructor '~Handle' should not call function 'find' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
498: |
Destructor '~Handle' should not call function 'find' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
500: |
Destructor '~Handle' should not call function 'erase' that is not in try context |
CERT_CPP-DCL57-a-2 |
|
500: |
Destructor '~Handle' should not call function 'erase' that is not in try context |
CERT_CPP-ERR50-b-3 |
|
500: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
500: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
500: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
517: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::Timeline::insert] INTERNAL ERROR: nullptr value
for entry being inserted. Please report this bug to the maintainers!
|
CERT_C-MSC41-a-1 |
|
525: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
525: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
525: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
527: |
Use parenthesis to clarify order ('<' is the second operand of '&&') |
CERT_C-EXP00-a-3 |
|
531: |
The string literal is embedded directly in the code: [rmf_traffic::schedule::Timeline] Trying to insert a trajectory with
less than 2 waypoints [
|
CERT_C-MSC41-a-1 |
|
533: |
The string literal is embedded directly in the code: ] is illegal! |
CERT_C-MSC41-a-1 |
|
555: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
555: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
555: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
|
562: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
562: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
562: |
The parameter 'time' of function 'cull' is passed by value |
OPT-14-3 |
|
576: |
Unused function's "erase" return value |
CERT_C-ERR33-a-1 |
|
576: |
Unused function's "erase" return value |
CERT_C-POS54-a-1 |
|
576: |
Unused function's "erase" return value |
CERT_C-EXP12-a-3 |
|
633: |
Reserved name 'time' used |
CERT_CPP-DCL51-e-3 |
|
633: |
Reserved name 'time' used |
CERT_CPP-DCL51-f-3 |
|
633: |
The parameter 'time' of function 'get_timeline_iterator' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Viewer.cpp |
|
78: |
The parameter 'dep' of function 'make' is passed by value |
OPT-14-3 |
|
79: |
The parameter 'on_reached' of function 'make' is passed by value |
OPT-14-3 |
|
80: |
The parameter 'on_deprecated' of function 'make' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/ViewerInternal.hpp |
|
45: |
Parameter 'input' is not validated before use |
CERT_C-API00-a-3 |
|
45: |
The parameter 'input' of function 'make_view' is passed by value |
OPT-14-3 |
|
47: |
The local variable 'elements' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
58: |
Parameter 'input' is not validated before use |
CERT_C-API00-a-3 |
|
58: |
Parameter 'view' is not validated before use |
CERT_C-API00-a-3 |
|
58: |
The parameter 'input' of function 'append_to_view' is passed by value |
OPT-14-3 |
|
61: |
Unused function's "insert" return value |
CERT_C-ERR33-a-1 |
|
61: |
Unused function's "insert" return value |
CERT_C-POS54-a-1 |
|
61: |
Unused function's "insert" return value |
CERT_C-EXP12-a-3 |
|
68: |
Parameter 'input' is not validated before use |
CERT_C-API00-a-3 |
|
70: |
The local variable 'elements' hides a member variable declared in class 'Implementation' |
CODSTA-44-1 |
|
76: |
Parameter 'elements' is not validated before use |
CERT_C-API00-a-3 |
|
77: |
Parameter 'input' is not validated before use |
CERT_C-API00-a-3 |
|
82: |
The 'assert' shall not be used |
CERT_C-ERR06-a-3 |
|
83: |
Unused function's "emplace_back" return value |
CERT_C-ERR33-a-1 |
|
83: |
Unused function's "emplace_back" return value |
CERT_C-POS54-a-1 |
|
83: |
Unused function's "emplace_back" return value |
CERT_C-EXP12-a-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/Writer.cpp |
|
24: |
No constructor. All member variables: 'id, plan_id, storage_base, version' should be initialized in constructor |
INIT-06-1 |
/rmf_traffic_testing/src/rmf_traffic/schedule/internal_Database.hpp |
|
31: |
The parameter 'description' of function 'internal_register_participant' is passed by value |
OPT-14-3 |
|
46: |
The parameter 'routes' of function 'set_participant_state' is passed by value |
OPT-14-3 |
|
49: |
The parameter 'progress' of function 'set_participant_state' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/internal_Participant.hpp |
|
37: |
The parameter 'description' of function 'make' is passed by value |
OPT-14-3 |
|
41: |
Class Shared has a non-trivial destructor, but no copy constructor nor copy assignment operator |
CERT_CPP-MEM51-c-1 |
|
47: |
The parameter 'description' of function 'Shared' is passed by value |
OPT-14-3 |
|
50: |
The parameter 'itinerary' of function 'set' is passed by value |
OPT-14-3 |
|
52: |
The parameter 'additional_routes' of function 'extend' is passed by value |
OPT-14-3 |
|
54: |
The parameter 'delay' of function 'delay' is passed by value |
OPT-14-3 |
|
108: |
The parameter 'description' of function 'Implementation' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/internal_Progress.hpp |
|
36: |
The parameter 'new_version' of function 'update' is passed by value |
OPT-14-3 |
|
50: |
The parameter 'version' of function 'buff' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/internal_Snapshot.hpp |
|
77: |
The parameter 'ids' of function 'SnapshotImplementation' is passed by value |
OPT-14-3 |
|
78: |
The parameter 'participants' of function 'SnapshotImplementation' is passed by value |
OPT-14-3 |
/rmf_traffic_testing/src/rmf_traffic/schedule/internal_Viewer.hpp |
|
45: |
The parameter 'dep' of function 'make' is passed by value |
OPT-14-3 |
|
46: |
The parameter 'on_reached' of function 'make' is passed by value |
OPT-14-3 |
|
47: |
The parameter 'on_deprecated' of function 'make' is passed by value |
OPT-14-3 |