clang_version diagnostics path kindcontrol edges start line82 col3 file0 line82 col5 file0 end line84 col3 file0 line84 col4 file0 kindcontrol edges start line84 col3 file0 line84 col4 file0 end line84 col7 file0 line84 col7 file0 kindevent location line84 col7 file0 ranges line84 col7 file0 line84 col9 file0 depth0 extended_message Assuming 'fd' is not equal to 0 message Assuming 'fd' is not equal to 0 kindcontrol edges start line84 col7 file0 line84 col7 file0 end line87 col3 file0 line87 col4 file0 kindcontrol edges start line87 col3 file0 line87 col4 file0 end line87 col8 file0 line87 col11 file0 kindevent location line87 col8 file0 ranges line87 col19 file0 line87 col25 file0 depth0 extended_message Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set message Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set descriptionCall to 'open' requires a 3rd argument when the 'O_CREAT' flag is set categoryUnix API typeImproper use of 'open' check_nameunix.API issue_hash_content_of_line_in_context5ef25c5c47db3dbfb329901d426452e7 issue_context_kindfunction issue_contexttest_open issue_hash_function_offset6 location line87 col8 file0 ExecutedLines 0 81 82 83 84 87 path kindcontrol edges start line93 col3 file0 line93 col5 file0 end line95 col3 file0 line95 col4 file0 kindcontrol edges start line95 col3 file0 line95 col4 file0 end line95 col7 file0 line95 col7 file0 kindevent location line95 col7 file0 ranges line95 col7 file0 line95 col9 file0 depth0 extended_message Assuming 'fd' is not equal to 0 message Assuming 'fd' is not equal to 0 kindcontrol edges start line95 col7 file0 line95 col7 file0 end line98 col3 file0 line98 col4 file0 kindcontrol edges start line98 col3 file0 line98 col4 file0 end line98 col8 file0 line98 col13 file0 kindevent location line98 col8 file0 ranges line98 col44 file0 line98 col50 file0 depth0 extended_message Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set message Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set descriptionCall to 'openat' requires a 4th argument when the 'O_CREAT' flag is set categoryUnix API typeImproper use of 'open' check_nameunix.API issue_hash_content_of_line_in_context433b17840bb989e7a13dc6337c1ed220 issue_context_kindfunction issue_contexttest_open_at issue_hash_function_offset6 location line98 col8 file0 ExecutedLines 0 92 93 94 95 98 path kindcontrol edges start line104 col3 file0 line104 col17 file0 end line105 col8 file0 line105 col9 file0 kindcontrol edges start line105 col8 file0 line105 col9 file0 end line105 col52 file0 line105 col64 file0 kindevent location line105 col52 file0 ranges line105 col66 file0 line105 col72 file0 depth0 extended_message Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? message Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? categoryAPI Misuse (Apple) typeImproper use of 'dispatch_once' check_nameosx.API issue_hash_content_of_line_in_context173fbcac3fc64dbaec32768d4cfda250 issue_context_kindfunction issue_contexttest_dispatch_once issue_hash_function_offset2 location line105 col52 file0 ExecutedLines 0 103 104 105 path kindcontrol edges start line115 col3 file0 line115 col16 file0 end line116 col3 file0 line116 col14 file0 kindevent location line116 col3 file0 ranges line116 col16 file0 line116 col20 file0 depth0 extended_message Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? message Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? descriptionCall to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? categoryUnix API typeImproper use of 'pthread_once' check_nameunix.API issue_hash_content_of_line_in_context1e2f657a65cf8ee3c3ac2227de05ade4 issue_context_kindfunction issue_contexttest_pthread_once issue_hash_function_offset2 location line116 col3 file0 ExecutedLines 0 114 115 116 path kindcontrol edges start line125 col3 file0 line125 col6 file0 end line125 col15 file0 line125 col20 file0 kindevent location line125 col15 file0 ranges line125 col22 file0 line125 col22 file0 depth0 extended_message Call to 'malloc' has an allocation size of 0 bytes message Call to 'malloc' has an allocation size of 0 bytes descriptionCall to 'malloc' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_context4ddbefeb3fa802a0636dc63d679bdc89 issue_context_kindfunction issue_contextpr2899 issue_hash_function_offset1 location line125 col15 file0 ExecutedLines 0 124 125 path kindcontrol edges start line137 col3 file0 line137 col6 file0 end line137 col15 file0 line137 col20 file0 kindevent location line137 col15 file0 ranges line137 col22 file0 line137 col22 file0 depth0 extended_message Call to 'calloc' has an allocation size of 0 bytes message Call to 'calloc' has an allocation size of 0 bytes descriptionCall to 'calloc' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_context9f12ad2f0a645cb7e4485fed526f536e issue_context_kindfunction issue_contexttest_calloc issue_hash_function_offset1 location line137 col15 file0 ExecutedLines 0 136 137 path kindcontrol edges start line143 col3 file0 line143 col6 file0 end line143 col15 file0 line143 col20 file0 kindevent location line143 col15 file0 ranges line143 col26 file0 line143 col26 file0 depth0 extended_message Call to 'calloc' has an allocation size of 0 bytes message Call to 'calloc' has an allocation size of 0 bytes descriptionCall to 'calloc' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_context835b2375daee5b05ac48f24ac578de4c issue_context_kindfunction issue_contexttest_calloc2 issue_hash_function_offset1 location line143 col15 file0 ExecutedLines 0 142 143 path kindcontrol edges start line155 col3 file0 line155 col6 file0 end line155 col15 file0 line155 col21 file0 kindevent location line155 col15 file0 ranges line155 col28 file0 line155 col28 file0 depth0 extended_message Call to 'realloc' has an allocation size of 0 bytes message Call to 'realloc' has an allocation size of 0 bytes descriptionCall to 'realloc' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_contextbbdabcb6c5a3783012ae34bfea2a10fb issue_context_kindfunction issue_contexttest_realloc issue_hash_function_offset1 location line155 col15 file0 ExecutedLines 0 154 155 path kindcontrol edges start line161 col3 file0 line161 col6 file0 end line161 col15 file0 line161 col22 file0 kindevent location line161 col15 file0 ranges line161 col29 file0 line161 col29 file0 depth0 extended_message Call to 'reallocf' has an allocation size of 0 bytes message Call to 'reallocf' has an allocation size of 0 bytes descriptionCall to 'reallocf' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_context5d222055bbf58b08ec345f0ebfd7b9d1 issue_context_kindfunction issue_contexttest_reallocf issue_hash_function_offset1 location line161 col15 file0 ExecutedLines 0 160 161 path kindcontrol edges start line179 col3 file0 line179 col6 file0 end line179 col15 file0 line179 col20 file0 kindevent location line179 col15 file0 ranges line179 col22 file0 line179 col22 file0 depth0 extended_message Call to 'alloca' has an allocation size of 0 bytes message Call to 'alloca' has an allocation size of 0 bytes descriptionCall to 'alloca' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_contextf7bdefde93c0a58ec236918fb0c3a54e issue_context_kindfunction issue_contexttest_alloca issue_hash_function_offset1 location line179 col15 file0 ExecutedLines 0 178 179 path kindcontrol edges start line191 col3 file0 line191 col6 file0 end line191 col16 file0 line191 col31 file0 kindevent location line191 col16 file0 ranges line191 col33 file0 line191 col33 file0 depth0 extended_message Call to 'alloca' has an allocation size of 0 bytes message Call to 'alloca' has an allocation size of 0 bytes descriptionCall to 'alloca' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_context4247526f8da82479508f2d364c2992d5 issue_context_kindfunction issue_contexttest_builtin_alloca issue_hash_function_offset1 location line191 col16 file0 ExecutedLines 0 190 191 path kindcontrol edges start line203 col3 file0 line203 col6 file0 end line203 col15 file0 line203 col20 file0 kindevent location line203 col15 file0 ranges line203 col22 file0 line203 col22 file0 depth0 extended_message Call to 'valloc' has an allocation size of 0 bytes message Call to 'valloc' has an allocation size of 0 bytes descriptionCall to 'valloc' has an allocation size of 0 bytes categoryUnix API typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) check_nameoptin.portability.UnixAPI issue_hash_content_of_line_in_contexte16dfa9598fd2fafe6dc5563990c1dd3 issue_context_kindfunction issue_contexttest_valloc issue_hash_function_offset1 location line203 col15 file0 ExecutedLines 0 202 203 path kindcontrol edges start line216 col3 file0 line216 col17 file0 end line217 col3 file0 line217 col15 file0 kindevent location line217 col3 file0 ranges line217 col17 file0 line217 col21 file0 depth0 extended_message Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? message Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? categoryAPI Misuse (Apple) typeImproper use of 'dispatch_once' check_nameosx.API issue_hash_content_of_line_in_context8ded1f2025c1e4a4bcd5302dc97006d9 issue_context_kindfunction issue_contexttest_dispatch_once_in_macro issue_hash_function_offset2 location line217 col3 file0 ExecutedLines 0 215 216 217 path kindevent location line222 col3 file0 ranges line222 col3 file0 line222 col8 file0 depth0 extended_message 'p' initialized to a null pointer value message 'p' initialized to a null pointer value kindcontrol edges start line222 col3 file0 line222 col5 file0 end line223 col3 file0 line223 col15 file0 kindcontrol edges start line223 col3 file0 line223 col15 file0 end line223 col24 file0 line223 col24 file0 kindevent location line223 col24 file0 ranges line223 col24 file0 line227 col3 file0 depth0 extended_message 'p' captured by block as a null pointer value message 'p' captured by block as a null pointer value kindcontrol edges start line223 col24 file0 line223 col24 file0 end line223 col3 file0 line223 col15 file0 kindevent location line223 col3 file0 ranges line223 col3 file0 line227 col4 file0 depth0 extended_message Calling 'dispatch_sync' message Calling 'dispatch_sync' kindevent location line223 col3 file0 ranges line223 col3 file0 line227 col4 file0 depth1 extended_message Calling anonymous block message Calling anonymous block kindevent location line223 col24 file0 depth2 extended_message Entered call from 'dispatch_sync' message Entered call from 'dispatch_sync' kindcontrol edges start line223 col24 file0 line223 col24 file0 end line224 col4 file0 line224 col5 file0 kindcontrol edges start line224 col4 file0 line224 col5 file0 end line224 col8 file0 line224 col8 file0 kindevent location line224 col8 file0 ranges line224 col8 file0 line224 col8 file0 depth2 extended_message Assuming 'q' is non-null message Assuming 'q' is non-null kindcontrol edges start line224 col8 file0 line224 col8 file0 end line225 col3 file0 line225 col3 file0 kindcontrol edges start line225 col3 file0 line225 col3 file0 end line225 col6 file0 line225 col6 file0 kindevent location line225 col6 file0 ranges line225 col4 file0 line225 col4 file0 depth2 extended_message Dereference of null pointer (loaded from variable 'p') message Dereference of null pointer (loaded from variable 'p') descriptionDereference of null pointer (loaded from variable 'p') categoryLogic error typeDereference of null pointer check_namecore.NullDereference issue_hash_content_of_line_in_context5d3f4c433004c7a6d4a06aa30cc3ea85 location line225 col6 file0 ExecutedLines 0 40 221 222 223 224 225 path kindcontrol edges start line232 col3 file0 line232 col8 file0 end line233 col3 file0 line233 col5 file0 kindevent location line233 col3 file0 ranges line233 col3 file0 line233 col8 file0 depth0 extended_message 'p' initialized to a null pointer value message 'p' initialized to a null pointer value kindcontrol edges start line233 col3 file0 line233 col5 file0 end line234 col3 file0 line234 col15 file0 kindcontrol edges start line234 col3 file0 line234 col15 file0 end line234 col24 file0 line234 col24 file0 kindevent location line234 col24 file0 ranges line234 col24 file0 line236 col3 file0 depth0 extended_message 'p' captured by block as a null pointer value message 'p' captured by block as a null pointer value kindcontrol edges start line234 col24 file0 line234 col24 file0 end line234 col3 file0 line234 col15 file0 kindevent location line234 col3 file0 ranges line234 col3 file0 line236 col4 file0 depth0 extended_message Calling '_dispatch_once' message Calling '_dispatch_once' kindevent location line52 col1 file0 depth1 extended_message Entered call from 'test_inline_dispatch_once' message Entered call from 'test_inline_dispatch_once' kindcontrol edges start line52 col1 file0 line52 col6 file0 end line60 col2 file0 line60 col3 file0 kindcontrol edges start line60 col2 file0 line60 col3 file0 end line61 col3 file0 line61 col15 file0 kindevent location line61 col3 file0 ranges line61 col3 file0 line61 col33 file0 depth1 extended_message Calling 'dispatch_once' message Calling 'dispatch_once' kindevent location line61 col3 file0 ranges line61 col3 file0 line61 col33 file0 depth2 extended_message Calling anonymous block message Calling anonymous block kindevent location line234 col24 file0 depth3 extended_message Entered call from 'dispatch_once' message Entered call from 'dispatch_once' kindcontrol edges start line234 col24 file0 line234 col24 file0 end line235 col4 file0 line235 col4 file0 kindcontrol edges start line235 col4 file0 line235 col4 file0 end line235 col7 file0 line235 col7 file0 kindevent location line235 col7 file0 ranges line235 col5 file0 line235 col5 file0 depth3 extended_message Dereference of null pointer (loaded from variable 'p') message Dereference of null pointer (loaded from variable 'p') descriptionDereference of null pointer (loaded from variable 'p') categoryLogic error typeDereference of null pointer check_namecore.NullDereference issue_hash_content_of_line_in_context265c4fd608dafee211bfa93d21c28866 location line235 col7 file0 ExecutedLines 0 44 45 46 47 48 52 53 54 55 56 57 58 59 60 61 231 232 233 234 235 path kindcontrol edges start line241 col3 file0 line241 col8 file0 end line243 col3 file0 line243 col15 file0 kindevent location line243 col3 file0 ranges line243 col3 file0 line245 col4 file0 depth0 extended_message Calling '_dispatch_once' message Calling '_dispatch_once' kindevent location line52 col1 file0 depth1 extended_message Entered call from 'test_inline_dispatch_once_reachable' message Entered call from 'test_inline_dispatch_once_reachable' kindcontrol edges start line52 col1 file0 line52 col6 file0 end line60 col2 file0 line60 col3 file0 kindcontrol edges start line60 col2 file0 line60 col3 file0 end line61 col3 file0 line61 col15 file0 kindevent location line61 col3 file0 ranges line61 col3 file0 line61 col33 file0 depth1 extended_message Calling 'dispatch_once' message Calling 'dispatch_once' kindevent location line61 col3 file0 ranges line61 col3 file0 line61 col33 file0 depth2 extended_message Calling anonymous block message Calling anonymous block kindevent location line243 col24 file0 depth3 extended_message Entered call from 'dispatch_once' message Entered call from 'dispatch_once' kindcontrol edges start line243 col24 file0 line243 col24 file0 end line244 col7 file0 line244 col7 file0 kindevent location line244 col7 file0 ranges line244 col7 file0 line244 col11 file0 depth3 extended_message Null pointer value stored to 'p' message Null pointer value stored to 'p' kindevent location line61 col3 file0 ranges line61 col3 file0 line61 col33 file0 depth2 extended_message Returning to caller message Returning to caller kindevent location line61 col3 file0 ranges line61 col3 file0 line61 col33 file0 depth1 extended_message Returning from 'dispatch_once' message Returning from 'dispatch_once' kindcontrol edges start line61 col3 file0 line61 col15 file0 end line65 col2 file0 line65 col17 file0 kindevent location line243 col3 file0 ranges line243 col3 file0 line245 col4 file0 depth0 extended_message Returning from '_dispatch_once' message Returning from '_dispatch_once' kindcontrol edges start line243 col3 file0 line243 col15 file0 end line247 col3 file0 line247 col3 file0 kindcontrol edges start line247 col3 file0 line247 col3 file0 end line247 col6 file0 line247 col6 file0 kindevent location line247 col6 file0 ranges line247 col4 file0 line247 col4 file0 depth0 extended_message Dereference of null pointer (loaded from variable 'p') message Dereference of null pointer (loaded from variable 'p') descriptionDereference of null pointer (loaded from variable 'p') categoryLogic error typeDereference of null pointer check_namecore.NullDereference issue_hash_content_of_line_in_context1e83bd4361a2351df0b4e77eb3a9109b issue_context_kindfunction issue_contexttest_inline_dispatch_once_reachable issue_hash_function_offset7 location line247 col6 file0 ExecutedLines 0 44 45 46 47 48 52 53 54 55 56 57 58 59 60 61 65 240 241 242 243 244 247 files