clang_version diagnostics path kindcontrol edges start line84 col3 file0 line84 col5 file0 end line86 col3 file0 line86 col4 file0 kindcontrol edges start line86 col3 file0 line86 col4 file0 end line86 col7 file0 line86 col7 file0 kindevent location line86 col7 file0 ranges line86 col7 file0 line86 col9 file0 depth0 extended_message Assuming 'fd' is not equal to 0 message Assuming 'fd' is not equal to 0 kindcontrol edges start line86 col7 file0 line86 col7 file0 end line89 col3 file0 line89 col4 file0 kindcontrol edges start line89 col3 file0 line89 col4 file0 end line89 col8 file0 line89 col11 file0 kindevent location line89 col8 file0 ranges line89 col19 file0 line89 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 line89 col8 file0 ExecutedLines 0 83 84 85 86 89 path kindcontrol edges start line95 col3 file0 line95 col5 file0 end line97 col3 file0 line97 col4 file0 kindcontrol edges start line97 col3 file0 line97 col4 file0 end line97 col7 file0 line97 col7 file0 kindevent location line97 col7 file0 ranges line97 col7 file0 line97 col9 file0 depth0 extended_message Assuming 'fd' is not equal to 0 message Assuming 'fd' is not equal to 0 kindcontrol edges start line97 col7 file0 line97 col7 file0 end line100 col3 file0 line100 col4 file0 kindcontrol edges start line100 col3 file0 line100 col4 file0 end line100 col8 file0 line100 col13 file0 kindevent location line100 col8 file0 ranges line100 col44 file0 line100 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 line100 col8 file0 ExecutedLines 0 94 95 96 97 100 path kindcontrol edges start line106 col3 file0 line106 col17 file0 end line107 col8 file0 line107 col9 file0 kindcontrol edges start line107 col8 file0 line107 col9 file0 end line107 col52 file0 line107 col64 file0 kindevent location line107 col52 file0 ranges line107 col66 file0 line107 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_context3c7c4524233ba46b615e7c4c2ce7c20d issue_context_kindfunction issue_contexttest_dispatch_once issue_hash_function_offset2 location line107 col52 file0 ExecutedLines 0 105 106 107 path kindcontrol edges start line117 col3 file0 line117 col16 file0 end line118 col3 file0 line118 col14 file0 kindevent location line118 col3 file0 ranges line118 col16 file0 line118 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 line118 col3 file0 ExecutedLines 0 116 117 118 path kindcontrol edges start line127 col3 file0 line127 col6 file0 end line127 col15 file0 line127 col20 file0 kindevent location line127 col15 file0 ranges line127 col22 file0 line127 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 line127 col15 file0 ExecutedLines 0 126 127 path kindcontrol edges start line139 col3 file0 line139 col6 file0 end line139 col15 file0 line139 col20 file0 kindevent location line139 col15 file0 ranges line139 col22 file0 line139 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 line139 col15 file0 ExecutedLines 0 138 139 path kindcontrol edges start line145 col3 file0 line145 col6 file0 end line145 col15 file0 line145 col20 file0 kindevent location line145 col15 file0 ranges line145 col26 file0 line145 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 line145 col15 file0 ExecutedLines 0 144 145 path kindcontrol edges start line157 col3 file0 line157 col6 file0 end line157 col15 file0 line157 col21 file0 kindevent location line157 col15 file0 ranges line157 col28 file0 line157 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 line157 col15 file0 ExecutedLines 0 156 157 path kindcontrol edges start line163 col3 file0 line163 col6 file0 end line163 col15 file0 line163 col22 file0 kindevent location line163 col15 file0 ranges line163 col29 file0 line163 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 line163 col15 file0 ExecutedLines 0 162 163 path kindcontrol edges start line181 col3 file0 line181 col6 file0 end line181 col15 file0 line181 col20 file0 kindevent location line181 col15 file0 ranges line181 col22 file0 line181 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 line181 col15 file0 ExecutedLines 0 180 181 path kindcontrol edges start line193 col3 file0 line193 col6 file0 end line193 col16 file0 line193 col31 file0 kindevent location line193 col16 file0 ranges line193 col33 file0 line193 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 line193 col16 file0 ExecutedLines 0 192 193 path kindcontrol edges start line205 col3 file0 line205 col6 file0 end line205 col15 file0 line205 col20 file0 kindevent location line205 col15 file0 ranges line205 col22 file0 line205 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 line205 col15 file0 ExecutedLines 0 204 205 path kindcontrol edges start line218 col3 file0 line218 col17 file0 end line219 col3 file0 line219 col15 file0 kindevent location line219 col3 file0 ranges line219 col17 file0 line219 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_context6fec229f3dde6d311481c6a64eeffefa issue_context_kindfunction issue_contexttest_dispatch_once_in_macro issue_hash_function_offset2 location line219 col3 file0 ExecutedLines 0 217 218 219 path kindevent location line224 col3 file0 ranges line224 col3 file0 line224 col8 file0 depth0 extended_message 'p' initialized to a null pointer value message 'p' initialized to a null pointer value kindcontrol edges start line224 col3 file0 line224 col5 file0 end line225 col3 file0 line225 col15 file0 kindcontrol edges start line225 col3 file0 line225 col15 file0 end line225 col24 file0 line225 col24 file0 kindevent location line225 col24 file0 ranges line225 col24 file0 line229 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 line225 col24 file0 line225 col24 file0 end line225 col3 file0 line225 col15 file0 kindevent location line225 col3 file0 ranges line225 col3 file0 line229 col4 file0 depth0 extended_message Calling 'dispatch_sync' message Calling 'dispatch_sync' kindevent location line225 col3 file0 ranges line225 col3 file0 line229 col4 file0 depth1 extended_message Calling anonymous block message Calling anonymous block kindevent location line225 col24 file0 depth2 extended_message Entered call from 'dispatch_sync' message Entered call from 'dispatch_sync' kindcontrol edges start line225 col24 file0 line225 col24 file0 end line226 col4 file0 line226 col5 file0 kindcontrol edges start line226 col4 file0 line226 col5 file0 end line226 col8 file0 line226 col8 file0 kindevent location line226 col8 file0 ranges line226 col8 file0 line226 col8 file0 depth2 extended_message Assuming 'q' is non-null message Assuming 'q' is non-null kindcontrol edges start line226 col8 file0 line226 col8 file0 end line227 col3 file0 line227 col3 file0 kindcontrol edges start line227 col3 file0 line227 col3 file0 end line227 col6 file0 line227 col6 file0 kindevent location line227 col6 file0 ranges line227 col4 file0 line227 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 line227 col6 file0 ExecutedLines 0 42 223 224 225 226 227 path kindcontrol edges start line234 col3 file0 line234 col8 file0 end line235 col3 file0 line235 col5 file0 kindevent location line235 col3 file0 ranges line235 col3 file0 line235 col8 file0 depth0 extended_message 'p' initialized to a null pointer value message 'p' initialized to a null pointer value kindcontrol edges start line235 col3 file0 line235 col5 file0 end line236 col3 file0 line236 col15 file0 kindcontrol edges start line236 col3 file0 line236 col15 file0 end line236 col24 file0 line236 col24 file0 kindevent location line236 col24 file0 ranges line236 col24 file0 line238 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 line236 col24 file0 line236 col24 file0 end line236 col3 file0 line236 col15 file0 kindevent location line236 col3 file0 ranges line236 col3 file0 line238 col4 file0 depth0 extended_message Calling '_dispatch_once' message Calling '_dispatch_once' kindevent location line54 col1 file0 depth1 extended_message Entered call from 'test_inline_dispatch_once' message Entered call from 'test_inline_dispatch_once' kindcontrol edges start line54 col1 file0 line54 col6 file0 end line62 col2 file0 line62 col3 file0 kindcontrol edges start line62 col2 file0 line62 col3 file0 end line63 col3 file0 line63 col15 file0 kindevent location line63 col3 file0 ranges line63 col3 file0 line63 col33 file0 depth1 extended_message Calling 'dispatch_once' message Calling 'dispatch_once' kindevent location line63 col3 file0 ranges line63 col3 file0 line63 col33 file0 depth2 extended_message Calling anonymous block message Calling anonymous block kindevent location line236 col24 file0 depth3 extended_message Entered call from 'dispatch_once' message Entered call from 'dispatch_once' kindcontrol edges start line236 col24 file0 line236 col24 file0 end line237 col4 file0 line237 col4 file0 kindcontrol edges start line237 col4 file0 line237 col4 file0 end line237 col7 file0 line237 col7 file0 kindevent location line237 col7 file0 ranges line237 col5 file0 line237 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 line237 col7 file0 ExecutedLines 0 46 47 48 49 50 54 55 56 57 58 59 60 61 62 63 233 234 235 236 237 path kindcontrol edges start line243 col3 file0 line243 col8 file0 end line245 col3 file0 line245 col15 file0 kindevent location line245 col3 file0 ranges line245 col3 file0 line247 col4 file0 depth0 extended_message Calling '_dispatch_once' message Calling '_dispatch_once' kindevent location line54 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 line54 col1 file0 line54 col6 file0 end line62 col2 file0 line62 col3 file0 kindcontrol edges start line62 col2 file0 line62 col3 file0 end line63 col3 file0 line63 col15 file0 kindevent location line63 col3 file0 ranges line63 col3 file0 line63 col33 file0 depth1 extended_message Calling 'dispatch_once' message Calling 'dispatch_once' kindevent location line63 col3 file0 ranges line63 col3 file0 line63 col33 file0 depth2 extended_message Calling anonymous block message Calling anonymous block kindevent location line245 col24 file0 depth3 extended_message Entered call from 'dispatch_once' message Entered call from 'dispatch_once' kindcontrol edges start line245 col24 file0 line245 col24 file0 end line246 col7 file0 line246 col7 file0 kindevent location line246 col7 file0 ranges line246 col7 file0 line246 col11 file0 depth3 extended_message Null pointer value stored to 'p' message Null pointer value stored to 'p' kindevent location line63 col3 file0 ranges line63 col3 file0 line63 col33 file0 depth2 extended_message Returning to caller message Returning to caller kindevent location line63 col3 file0 ranges line63 col3 file0 line63 col33 file0 depth1 extended_message Returning from 'dispatch_once' message Returning from 'dispatch_once' kindcontrol edges start line63 col3 file0 line63 col15 file0 end line67 col2 file0 line67 col17 file0 kindevent location line245 col3 file0 ranges line245 col3 file0 line247 col4 file0 depth0 extended_message Returning from '_dispatch_once' message Returning from '_dispatch_once' kindcontrol edges start line245 col3 file0 line245 col15 file0 end line249 col3 file0 line249 col3 file0 kindcontrol edges start line249 col3 file0 line249 col3 file0 end line249 col6 file0 line249 col6 file0 kindevent location line249 col6 file0 ranges line249 col4 file0 line249 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 line249 col6 file0 ExecutedLines 0 46 47 48 49 50 54 55 56 57 58 59 60 61 62 63 67 242 243 244 245 246 249 files