[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1436122: Memory - corruptions (OVERRUN) /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c: 2284 in _evas_svg_loader_xml_open_parser() *** CID 1436122: Memory - corruptions (OVERRUN) /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c: 2284 in _evas_svg_loader_xml_open_parser() 2278 sz = attrs - content; 2279 attrs_length = length - sz; 2280 while ((sz > 0) && (isspace(content[sz - 1]))) 2281 sz--; 2282 if ((unsigned int)sz > sizeof(tag_name)) return; 2283 strncpy(tag_name, content, sz); >>> CID 1436122: Memory - corruptions (OVERRUN) >>> Overrunning array "tag_name" of 20 bytes at byte offset 20 using index >>> "sz" (which evaluates to 20). 2284 tag_name[sz] = '\0'; 2285 } 2286 2287if ((method = _find_group_factory(tag_name))) 2288 { 2289 //group To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPU2Ry_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3IrAfIB4VmABZ0j-2BbHpRH6A-2B5MmzLrTw2uwVK1m9NTw5om6eLG8a2fVLnLYka4QDbfRH6hEAMPqN0YseZFeLnCGODM86JCHrt70VaWE-2FlkMTzTvTRRNThzeZ7JFRF4XMW4zNUaz1-2FHKeegW0Fr9prMDu4UylfHBxKRPU9n2PNas8bWVUJJae5H0Zw49S5mjOA ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 2 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 1396968: Program hangs (ORDER_REVERSAL) *** CID 1396968: Program hangs (ORDER_REVERSAL) /src/lib/evas/common/evas_image_scalecache.c: 507 in evas_common_rgba_image_scalecache_flush() 501 { 502 #ifdef SCALECACHE 503int t; 504SLKL(cache_lock); 505t = max_cache_size; 506max_cache_size = 0; >>> CID 1396968: Program hangs (ORDER_REVERSAL) >>> Calling "_cache_prune" acquires lock "_RGBA_Image.cache.lock" while >>> holding lock "cache_lock" (count: 2 / 6). 507_cache_prune(NULL, 1); 508max_cache_size = t; 509SLKU(cache_lock); 510 #endif 511 } 512 ** CID 1396947: Program hangs (ORDER_REVERSAL) *** CID 1396947: Program hangs (ORDER_REVERSAL) /src/lib/evas/common/evas_image_scalecache.c: 455 in evas_common_rgba_image_scalecache_size_set() 449 { 450 #ifdef SCALECACHE 451SLKL(cache_lock); 452if (size != max_cache_size) 453 { 454 max_cache_size = size; >>> CID 1396947: Program hangs (ORDER_REVERSAL) >>> Calling "_cache_prune" acquires lock "_RGBA_Image.cache.lock" while >>> holding lock "cache_lock" (count: 2 / 6). 455 _cache_prune(NULL, 1); 456 } 457SLKU(cache_lock); 458 #endif 459 } 460 To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPHJ6k_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3QlK506LGkntAX0UOTcGmGuLp4ZMN6DNlxGFw2FynQ-2BT0SMEmbIMWHoL-2B0bi7QCTtXqN-2BahNYHG179JlYk-2FxxKR1xz3GeClHHAM1R5JtSBYXbjxQ1QUzVKnEQhhKHdiymAaGrLESn5HDpkgd6lyUFjav966PffMM2ymZHzoCWR2h4dkj1NAcgaa7TdnYs9L8e ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 3 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 3 of 3 defect(s) ** CID 1432269: Error handling issues (CHECKED_RETURN) /src/tests/eina/eina_test_file.c: 211 in eina_file_direct_ls_simple() *** CID 1432269: Error handling issues (CHECKED_RETURN) /src/tests/eina/eina_test_file.c: 211 in eina_file_direct_ls_simple() 205fail_if(test_dirname == NULL); 206 207for (int i = 0; i != good_dirs_count; ++i) 208 { 209 Eina_Tmpstr *dirname = get_full_path(test_dirname, good_dirs[i]); 210 // clean old test directories >>> CID 1432269: Error handling issues (CHECKED_RETURN) >>> Calling "rmdir" without checking return value (as is done elsewhere 12 >>> out of 15 times). 211 rmdir(dirname); 212 fail_if(mkdir(dirname, default_dir_rights) != 0); 213 214 Eina_File_Direct_Info *dir_info; 215 Eina_Iterator *it = eina_file_direct_ls(test_dirname); 216 Eina_Bool found_dir = EINA_FALSE; ** CID 1432268: Error handling issues (CHECKED_RETURN) /src/tests/eina/eina_test_file.c: 270 in eina_file_ls_simple() *** CID 1432268: Error handling issues (CHECKED_RETURN) /src/tests/eina/eina_test_file.c: 270 in eina_file_ls_simple() 264fail_if(test_dirname == NULL); 265 266for (int i = 0; i != good_dirs_count; ++i) 267 { 268 Eina_Tmpstr *dirname = get_full_path(test_dirname, good_dirs[i]); 269 // clean old test directories >>> CID 1432268: Error handling issues (CHECKED_RETURN) >>> Calling "rmdir" without checking return value (as is done elsewhere 12 >>> out of 15 times). 270 rmdir(dirname); 271 fail_if(mkdir(dirname, default_dir_rights) != 0); 272 273 char *filename; 274 Eina_Iterator *it = eina_file_ls(test_dirname); 275 Eina_Bool found_dir = EINA_FALSE; ** CID 1432267: Error handling issues (CHECKED_RETURN) /src/tests/eina/eina_test_file.c: 429 in eina_file_map_new_test() *** CID 1432267: Error handling issues (CHECKED_RETURN) /src/tests/eina/eina_test_file.c: 429 in eina_file_map_new_test() 423eina_file_map_free(e_file2, file2_map); 424eina_file_close(e_file); 425eina_file_close(e_file2); 426 427unlink(test_file_path); 428unlink(test_file2_path); >>> CID 1432267: Error handling issues (CHECKED_RETURN) >>> Calling "rmdir" without checking return value (as is done elsewhere 12 >>> out of 15 times). 429rmdir(test_dirname); 430 431free(test_file_path); 432free(test_file2_path); 433free(big_buffer); 434eina_tmpstr_del(test_dirname); To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPQb-U_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3Jpk1ZUUacoMyXoJKoOvM84w2Qk68YfVDspRzpul5ELrJ4gGekpCO4-2Fdl81VIkJ7Jz7UWa1f2DGQhoepjtedHwq8mJzFPtYUBP3bvKDbh78Kyoo3BtRUgwQ9a6HwGUCqT2qQEBhN9lv9KiqYeR7XCyiuZI2Eift-2BzTJ0bmIwzf1fys-2F3Du8ddE51zakWvSXBB ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1431912: Uninitialized variables (UNINIT) /src/lib/eina/eina_file.c: 1393 in eina_file_close_from() *** CID 1431912: Uninitialized variables (UNINIT) /src/lib/eina/eina_file.c: 1393 in eina_file_close_from() 1387 } 1388 close(dirfd); 1389 // now go close all those fd's - some may be invalide like the dir 1390 // reading fd above... that's ok. 1391 for (i = 0; i < num_closes; i++) 1392 { >>> CID 1431912: Uninitialized variables (UNINIT) >>> Using uninitialized value "closes[i]" when calling "close". 1393 close(closes[i]); 1394 } 1395 return; 1396 } 1397 # else 1398DIR *dir; To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPQG0a_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3bHZcZdNalJlG-2Ba8KvYWOjcsEOJpmhTf4fmCL4Ox-2FRPauGw8jSPP9Zc7HONPY6IcJsLTqBsr49sqA52z4g30XJ86961FufDwejH6sDgakfehamTwOpBmSdUaHcYq8mJlMpKudaIJCt0KOKJpHd3j08S9twwzMlIfa7sY3eHWsehuHw9zgSzXSNEUrsvN6CII9 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1430579: Incorrect expression (SIZEOF_MISMATCH) /src/bin/elementary/test_label.c: 606 in test_text_memory() *** CID 1430579: Incorrect expression (SIZEOF_MISMATCH) /src/bin/elementary/test_label.c: 606 in test_text_memory() 600 } 601 } 602 603 void 604 test_text_memory(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 605 { >>> CID 1430579: Incorrect expression (SIZEOF_MISMATCH) >>> Passing argument "1UL" to function "calloc" that returns a pointer of >>> type "APP_MEM *" is suspicious because a multiple of "sizeof (APP_MEM) >>> /*72*/" is expected. 606 app_mem = calloc(sizeof(APP), 1); 607 608elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 609 610app_mem->win = elm_win_util_standard_add("Main", "App"); 611elm_win_autodel_set(app_mem->win, EINA_TRUE); To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPiAAF_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3jw784vo1ux19zUtBsMx2Drh9l6GCNhF5d-2FKLZcjBnM5P9IX4TdM3kg8y4bSxS1X94CiQuiQz3FongWNnkTw5Iz5L1HjKBx3AlDKWkvVzhA0iT1kNMaUyITu6tBD-2FWun1kyaLmGP8aBAgJWFX4bAnI-2F-2Fd-2BLqhSmYfLfR-2BksSC1oeYliuDdwE41-2FtdAOrMstXx ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 2 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 1397005:(OVERRUN) /src/lib/elementary/efl_ui_focus_manager_calc.c: 176 in border_onedirection_set() /src/lib/elementary/efl_ui_focus_manager_calc.c: 185 in border_onedirection_set() *** CID 1397005:(OVERRUN) /src/lib/elementary/efl_ui_focus_manager_calc.c: 176 in border_onedirection_set() 170 171border = &DIRECTION_ACCESS(node, direction); 172 173EINA_LIST_FREE(border->one_direction, partner) 174 { 175 Border *b = &DIRECTION_ACCESS(partner, efl_ui_focus_util_direction_complement(direction)); >>> CID 1397005:(OVERRUN) >>> Overrunning array of 64 bytes at byte offset 68719476704 by >>> dereferencing pointer "b". 176 b->cleanup_nodes = eina_list_remove(b->cleanup_nodes, node); 177 } 178 179border->one_direction = list; 180 181EINA_LIST_FOREACH(border->one_direction, lnode, partner) /src/lib/elementary/efl_ui_focus_manager_calc.c: 185 in border_onedirection_set() 179border->one_direction = list; 180 181EINA_LIST_FOREACH(border->one_direction, lnode, partner) 182 { 183 Border *comp_border = &DIRECTION_ACCESS(partner,efl_ui_focus_util_direction_complement(direction)); 184 >>> CID 1397005:(OVERRUN) >>> Overrunning array of 64 bytes at byte offset 68719476704 by >>> dereferencing pointer "comp_border". 185 comp_border->cleanup_nodes = eina_list_append(comp_border->cleanup_nodes, node); 186 } 187 } 188 189 static void 190 border_onedirection_cleanup(Node *node, Efl_Ui_Focus_Direction direction) ** CID 1396957: Memory - corruptions (OVERRUN) /src/lib/elementary/efl_ui_focus_manager_calc.c: 202 in border_onedirection_cleanup() *** CID 1396957: Memory - corruptions (OVERRUN) /src/lib/elementary/efl_ui_focus_manager_calc.c: 202 in border_onedirection_cleanup() 196 197border = &DIRECTION_ACCESS(node, direction); 198 199EINA_LIST_FREE(border->cleanup_nodes, partner) 200 { 201 Border *b = &DIRECTION_ACCESS(partner, efl_ui_focus_util_direction_complement(direction)); >>> CID 1396957: Memory - corruptions (OVERRUN) >>> Overrunning array of 64 bytes at byte offset 68719476704 by >>> dereferencing pointer "b". 202 b->one_direction = eina_list_remove(b->one_direction, node); 203 } 204 } 205 /** 206 * Create a new node 207 */ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPfZ6-_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3AcOjk7m6jpQH4vBxzKSqHn6Xv6TIrAucYNyVSbz-2BJ48xeG3RjyhhgOrFrva-2BDX-2FQLMd1SUANtSZnIyhsD8YsluyEXZs-2BoJwvQikbLmeXkGYRBV2zTBO5Moljzumy3tUxRMOX0cT2JkdzC01VgnF3CVlI92QwBHVFVurWV8T5L15ca5SdZGlZimWj5jUOW2r-2F ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1430485: Resource leaks (RESOURCE_LEAK) /src/examples/edje/edje-text.c: 47 in _on_text_change() *** CID 1430485: Resource leaks (RESOURCE_LEAK) /src/examples/edje/edje-text.c: 47 in _on_text_change() 41ecore_main_loop_quit(); 42 } 43 44 static void 45 _on_text_change(void *data EINA_UNUSED, Evas_Object *obj, const char *part) 46 { >>> CID 1430485: Resource leaks (RESOURCE_LEAK) >>> Failing to save or free storage allocated by >>> "edje_object_part_text_unescaped_get(obj, part)" leaks it. 47printf("text: %s\n", edje_object_part_text_unescaped_get(obj, part)); 48 } 49 50 static void 51 _on_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED) 52 { To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yr0IfqfowFTJfr2mAaHN4-2F3-2FDLvknkvEk8R-2Brc-2FAW1wKeWyrE1QE9OJURKPBhdlbSbw1o9AcDp5mEfe2HCNhbRPUBNQ_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3bL0qNtMicAPC4DJplU-2BzXh9OvyVHnVQg-2BnvGlklTqSaItsOSFQXGiEQQJeaMxXxFt0tWjKHRkdpnzA2wwAQLDAXbgm4afEfGPkt4pjhpTppxk0hMu-2Bh3l-2Bs0e7pe0GblYPbXxwhJjj-2FuVA68lXyZE1VZt6q6QORDAI-2FMah3xIjQpRR85uyVChUwYBiOKT-2Fd-2F ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 2 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 8 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 1430215: Resource leaks (RESOURCE_LEAK) /src/lib/evas/common/evas_text_utils.c: 1115 in _content_create_ot() *** CID 1430215: Resource leaks (RESOURCE_LEAK) /src/lib/evas/common/evas_text_utils.c: 1115 in _content_create_ot() 1109} 1110 pen_x = gl_itr->pen_after; } 1112 gl_itr->pen_after += adjust_x; 1113 1114 fi = text_props->font_instance; >>> CID 1430215: Resource leaks (RESOURCE_LEAK) >>> Variable "fg" going out of scope leaks the storage it points to. 1115 } 1116 } 1117 #else 1118 static inline void 1119 _content_create_regular(RGBA_Font_Int *fi, const Eina_Unicode *text, 1120 Evas_Text_Props *text_props, const Evas_BiDi_Paragraph_Props *par_props, ** CID 1430214: Resource leaks (RESOURCE_LEAK) /src/lib/evas/common/evas_font_ot.c: 191 in _evas_common_font_ot_hb_get_glyph_advance() *** CID 1430214: Resource leaks (RESOURCE_LEAK) /src/lib/evas/common/evas_font_ot.c: 191 in _evas_common_font_ot_hb_get_glyph_advance() 185RGBA_Font_Glyph *fg; 186(void) font; 187(void) user_data; 188fg = evas_common_font_int_cache_glyph_get(fi, glyph); 189if (fg) 190 { >>> CID 1430214: Resource leaks (RESOURCE_LEAK) >>> Variable "fg" going out of scope leaks the storage it points to. 191 return fg->advance.x >> 10; 192 } 193return 0; 194 } 195 196 static hb_position_t To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teExl4Ru1vqXvuwTryVO2Nj02BDTXle-2BVhCv8FT7jqbi77HUQo-2FVd-2B1-2F-2BoakUp0ZyUERYinKunD4dh9MAw6ivIOiFZFMm_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3gYFYUzm1tSbryd7SRVJFn4PvarXLVxZu-2BzTLuTlIaISR3yblBb26PLyZrL8-2BVh5QULCNziWIypajTOz5IZX7ZkWWkNVPQNPuE8VfavgJ5XoLM-2FPuwNSnjIXNXaeCHGEzMJ6p8rHBcQoCM11yhWamYAGv13-2BzULLYBEWmon5s-2FGqH73lRGOdPg2CQqguC06r6 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1429935: Null pointer dereferences (NULL_RETURNS) /src/bin/efreet/efreet_icon_cache_create.c: 321 in cache_scan_path_dir() *** CID 1429935: Null pointer dereferences (NULL_RETURNS) /src/bin/efreet/efreet_icon_cache_create.c: 321 in cache_scan_path_dir() 315 const char **tmp; 316 unsigned int i; 317 318 ext = strrchr(scentry->path + scentry->name_start, '.'); 319 /* icon with known extension */ 320 name = scentry->path + scentry->name_start; >>> CID 1429935: Null pointer dereferences (NULL_RETURNS) >>> Dereferencing "ext", which is known to be "NULL". 321 *ext = '\0'; 322 323 icon = eina_hash_find(icons, name); 324 if (!icon) 325 { 326 icon = NEW(Efreet_Cache_Icon, 1); To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teExl4Ru1vqXvuwTryVO2Nj02BDTXle-2BVhCv8FT7jqbi77HUQo-2FVd-2B1-2F-2BoakUp0ZyUERYinKunD4dh9MAw6ivIOiFvglw_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd33FBsaOuN5KdhR2UWNNgJ91VDLjhCqGXAzuFAR1q83Zno20BuZhHh5-2B7ZvFlxf-2B-2FzpNIqm8Dvh-2BskY4JNJe4pY-2F0bdx5EiKTL3Cn11E-2B5Z9CxrITMUGE-2BrpQ6UFub7-2BE2tHNHwr1YJq111FBGZL3DDr-2Fs2byYbenCrPWDh2AX2RE-3D ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1429077: Incorrect expression (DIVIDE_BY_ZERO) /src/lib/evas/canvas/efl_canvas_vg_object.c: 733 in _user_vg_entry_render() *** CID 1429077: Incorrect expression (DIVIDE_BY_ZERO) /src/lib/evas/canvas/efl_canvas_vg_object.c: 733 in _user_vg_entry_render() 727 user_entry->path_bounds.w, 728 user_entry->path_bounds.h); 729 730if (pd->viewbox.w != 0 || pd->viewbox.h !=0) 731 { 732 double sx = 0, sy= 0; >>> CID 1429077: Incorrect expression (DIVIDE_BY_ZERO) >>> In expression "(double)render_rect.w / (double)pd->viewbox.w", division >>> by expression "pd->viewbox.w" which may be zero has undefined behavior. 733 sx = (double)render_rect.w / (double)pd->viewbox.w; 734 sy = (double)render_rect.h / (double)pd->viewbox.h; 735 r.pos.x = (r.pos.x - pd->viewbox.x) * sx; 736 r.pos.y = (r.pos.y - pd->viewbox.y) * sy; 737 r.size.w *= sx; 738 r.size.h *= sy; To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teExl4Ru1vqXvuwTryVO2Nj02BDTXle-2BVhCv8FT7jqbi77HUQo-2FVd-2B1-2F-2BoakUp0ZyUERYinKunD4dh9MAw6ivIOiFXDPR_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3jmAcEWOPVzPOVgI7npa-2BmvQtJU7g7KXBMrBcgvRpVSuiMsdZ35ooodTWzDEdNtkGPX0ZXbfQs-2BF-2BNPc8miXD7zAAxjt2Ro5dBD9QAal958JEnnsqxGZILP9CM8Oa-2BfFrK-2BPg5jUre-2BByIhuN5-2FfEb6GMbUBZ5YvmZUe8TEycSg6haAL7bOxzbUiYqewM-2B5aX ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hello. On 01.06.20 20:52, scan-admin--- via enlightenment-devel wrote: Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. These mails will now come directly to the list (instead me forwarding) whenever there was a scan that found new issues. This will get us a shorter cycle between introducing and looking at them, hopefully. regards Stefan Schmidt ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] New Defects reported by Coverity Scan for Enlightenment Foundation Libraries
Hi, Please find the latest report on new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. 1 new defect(s) introduced to Enlightenment Foundation Libraries found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 1429050: Control flow issues (MISSING_BREAK) /src/static_libs/vg_common/vg_common_svg.c: 534 in vg_common_svg_node_free() *** CID 1429050: Control flow issues (MISSING_BREAK) /src/static_libs/vg_common/vg_common_svg.c: 534 in vg_common_svg_node_free() 528 case SVG_NODE_POLYLINE: 529free(node->node.polyline.points); 530break; 531 case SVG_NODE_DOC: 532vg_common_svg_node_free(node->node.doc.defs); 533break; >>> CID 1429050: Control flow issues (MISSING_BREAK) >>> The case for value "SVG_NODE_DEFS" is not terminated by a 'break' >>> statement. 534 case SVG_NODE_DEFS: 535EINA_LIST_FREE(node->node.defs.gradients, grad) 536 { 537 _svg_style_gradient_free(grad); 538 } 539 case SVG_NODE_CUSTOME_COMMAND: To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teExl4Ru1vqXvuwTryVO2Nj02BDTXle-2BVhCv8FT7jqbi77HUQo-2FVd-2B1-2F-2BoakUp0ZyUERYinKunD4dh9MAw6ivIOiFblJQ_mvpcOc8FOVNbImGRSJC5zHD-2FhpVE1eyBkS-2FwxVM20bAYoRluBZqz-2BflYwpXqPgd3p9riDciJGe0F4Qo4XkIkd2TaoGgloaknqxDh33YpEceayfLIG5gN2sIOkZMilw-2BOj9xLAt0IC-2BYb5WttpRYhr3f6kGHV1-2BMJN0EWHH1aYyg0JGj8GnJdS9eYD8F6rAqhprMf9-2FashtL7-2Bz2TF-2FSwu7gFpapHtKxEfVSCDZ72OF-2FRikWHkSK7MExkHlIP7ays ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel