)]}'
{"src/target/arm_adi_v5.c":[{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"aa7284668376e4d2e8146f0ceca0a7dcd3d40c30","unresolved":true,"context_lines":[{"line_number":2043,"context_line":""},{"line_number":2044,"context_line":"\tpc \u003d (struct adiv5_private_config *)target-\u003eprivate_config;"},{"line_number":2045,"context_line":"\tif (!pc) {"},{"line_number":2046,"context_line":"\t\tpc \u003d calloc(1, sizeof(struct adiv5_private_config));"},{"line_number":2047,"context_line":"\t\tpc-\u003eap_num \u003d DP_APSEL_INVALID;"},{"line_number":2048,"context_line":"\t\ttarget-\u003eprivate_config \u003d pc;"},{"line_number":2049,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"532d042a_12c3ddfd","line":2046,"range":{"start_line":2046,"start_character":2,"end_line":2046,"end_character":4},"updated":"2022-06-02 04:58:47.000000000","message":"A test for failed alloc is missing (since 2231da8ec4e7d7ae9b652f3dd1a7104f5a110f3f).\nCould it be the cause of the problem?","commit_id":"ddc4b58b0554ac1be0321b655ceeb9f58b3bac84"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"c2f24733012cd8f2eb745e482112f106c505662e","unresolved":false,"context_lines":[{"line_number":2043,"context_line":""},{"line_number":2044,"context_line":"\tpc \u003d (struct adiv5_private_config *)target-\u003eprivate_config;"},{"line_number":2045,"context_line":"\tif (!pc) {"},{"line_number":2046,"context_line":"\t\tpc \u003d calloc(1, sizeof(struct adiv5_private_config));"},{"line_number":2047,"context_line":"\t\tpc-\u003eap_num \u003d DP_APSEL_INVALID;"},{"line_number":2048,"context_line":"\t\ttarget-\u003eprivate_config \u003d pc;"},{"line_number":2049,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"5afdac0a_a7dbc44a","line":2046,"range":{"start_line":2046,"start_character":2,"end_line":2046,"end_character":4},"in_reply_to":"532d042a_12c3ddfd","updated":"2022-06-02 09:16:57.000000000","message":"Thanks for finding this missing check, I will fix it in another patch.\nStrange, scan-build did\u0027t found this!\nBut this is unrelated with this patch, as it would have already crashed for NULL pointer in the assignment in next line.","commit_id":"ddc4b58b0554ac1be0321b655ceeb9f58b3bac84"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"c2f24733012cd8f2eb745e482112f106c505662e","unresolved":false,"context_lines":[{"line_number":2082,"context_line":"int adiv5_jim_mem_ap_spot_configure(struct adiv5_mem_ap_spot *cfg,"},{"line_number":2083,"context_line":"\t\tstruct jim_getopt_info *goi)"},{"line_number":2084,"context_line":"{"},{"line_number":2085,"context_line":"\treturn adiv5_jim_spot_configure(goi, \u0026cfg-\u003edap, \u0026cfg-\u003eap_num, \u0026cfg-\u003ebase);"},{"line_number":2086,"context_line":"}"},{"line_number":2087,"context_line":""},{"line_number":2088,"context_line":"int adiv5_mem_ap_spot_init(struct adiv5_mem_ap_spot *p)"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"b53db3a8_7e654ab4","line":2085,"updated":"2022-06-02 09:16:57.000000000","message":"What I\u0027m fixing with this patch has this line as starting point of scan-build traces.\nTwo traces claim that \u0026cfg-\u003edap could be NULL, other two traces claim that \u0026cfg-\u003eap_num could be NULL.\nBut if you look at the callers, there is no way to arrive here with such NULL pointers; the execution should be already stopped earlier.","commit_id":"ddc4b58b0554ac1be0321b655ceeb9f58b3bac84"}]}
