Syscall param write(buf) points to uninitialised byte(s) in ephy_bookmarks_manager_save_to_file
@mcatanzaro
Submitted by Michael Catanzaro Link to original bug (#774798)
Description
==19263== Thread 1:
==19263== Syscall param write(buf) points to uninitialised byte(s)
==19263== at 0xBF1E63D: ??? (syscall-template.S:84)
==19263== by 0xBB553BD: write_to_temp_file (gfileutils.c:1060)
==19263== by 0xBB55697: g_file_set_contents (gfileutils.c:1198)
==19263== by 0x50DFC5D: gvdb_table_write_contents (gvdb-builder.c:519)
==19263== by 0x509755D: ephy_bookmarks_manager_save_to_file (ephy-bookmarks-manager.c:124)
==19263== by 0x5098587: ephy_bookmarks_manager_save_to_file_async (ephy-bookmarks-manager.c:543)
==19263== by 0x5097C32: ephy_bookmarks_manager_add_bookmarks (ephy-bookmarks-manager.c:305)
==19263== by 0x5098904: ephy_bookmarks_manager_load_from_file (ephy-bookmarks-manager.c:625)
==19263== by 0x50978ED: ephy_bookmarks_manager_init (ephy-bookmarks-manager.c:223)
==19263== by 0xA978BF5: g_type_create_instance (gtype.c:1866)
==19263== by 0xA95F24A: g_object_new_internal (gobject.c:1783)
==19263== by 0xA95F759: g_object_newv (gobject.c:1930)
==19263== Address 0x288b71e6 is 118 bytes inside a block of size 1,024 alloc'd
==19263== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==19263== by 0xBB7399E: g_realloc (gmem.c:159)
==19263== by 0xBB938B8: g_string_maybe_expand (gstring.c:102)
==19263== by 0xBB93F99: g_string_insert_len (gstring.c:476)
==19263== by 0xBB94311: g_string_append_len (gstring.c:620)
==19263== by 0x50DFB84: file_builder_serialise (gvdb-builder.c:492)
==19263== by 0x50DFC31: gvdb_table_write_contents (gvdb-builder.c:517)
==19263== by 0x509755D: ephy_bookmarks_manager_save_to_file (ephy-bookmarks-manager.c:124)
==19263== by 0x5098587: ephy_bookmarks_manager_save_to_file_async (ephy-bookmarks-manager.c:543)
==19263== by 0x5097C32: ephy_bookmarks_manager_add_bookmarks (ephy-bookmarks-manager.c:305)
==19263== by 0x5098904: ephy_bookmarks_manager_load_from_file (ephy-bookmarks-manager.c:625)
==19263== by 0x50978ED: ephy_bookmarks_manager_init (ephy-bookmarks-manager.c:223)
Version: 3.23.x
Edited by Jan-Michael Brummer