[Bug 43373] New: valgrind shows an invalid free in dlls/dwrite/tests/ font.c

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 18 13:12:07 CDT 2017


https://bugs.winehq.org/show_bug.cgi?id=43373

            Bug ID: 43373
           Summary: valgrind shows an invalid free in
                    dlls/dwrite/tests/font.c
           Product: Wine
           Version: 2.12
          Hardware: x86
                OS: Linux
            Status: NEW
          Keywords: download, source, testcase, valgrind
          Severity: normal
          Priority: P2
         Component: dwrite
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com
      Distribution: Gentoo

../../../tools/runtest -q -P wine -T ../../.. -M dwrite.dll -p
dwrite_test.exe.so font && touch font.ok
==11354== Invalid free() / delete / delete[] / realloc()
==11354==    at 0x7BC510DB: notify_free (heap.c:262)
==11354==    by 0x7BC556AC: RtlFreeHeap (heap.c:1762)
==11354==    by 0x4BE66D1: heap_free (dwrite_private.h:55)
==11354==    by 0x4BE8B9F: factory_release_cached_fontface (main.c:907)
==11354==    by 0x4BBD66F: dwritefontface_Release (font.c:510)
==11354==    by 0x4A33F54: IDWriteFontFace1_Release (dwrite_1.h:1216)
==11354==    by 0x4A33F54: test_GetUnicodeRanges (???:0)
==11354==    by 0x4A5372E: func_font (font.c:7834)
==11354==    by 0x4A7C235: run_test (test.h:603)
==11354==    by 0x4A7C694: main (test.h:687)
==11354==  Address 0x48f9688 is 8 bytes after a block of size 16 free'd
==11354==    at 0x7BC510DB: notify_free (heap.c:262)
==11354==    by 0x7BC556AC: RtlFreeHeap (heap.c:1762)
==11354==    by 0x4BE66D1: heap_free (dwrite_private.h:55)
==11354==    by 0x4BE728B: localizedstrings_Release (main.c:295)
==11354==    by 0x4BBD0AE: IDWriteLocalizedStrings_Release (dwrite.h:1439)
==11354==    by 0x4BBD0AE: release_font_data (???:0)
==11354==    by 0x4BBD154: release_fontfamily_data (font.c:440)
==11354==    by 0x4BC4131: dwritefontcollection_Release (font.c:2306)
==11354==    by 0x4BC3079: IDWriteFontCollection1_Release (dwrite_3.h:1486)
==11354==    by 0x4BC3079: dwritefontfamily_Release (???:0)
==11354==    by 0x4A27352: IDWriteFontFamily_Release (dwrite.h:2268)
==11354==    by 0x4A27352: test_GetFontFamily (???:0)
==11354==    by 0x4A536FC: func_font (font.c:7824)
==11354==    by 0x4A7C235: run_test (test.h:603)
==11354==    by 0x4A7C694: main (test.h:687)
==11354==  Block was alloc'd at
==11354==    at 0x7BC51061: notify_alloc (heap.c:254)
==11354==    by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==11354==    by 0x4BE663E: heap_alloc (dwrite_private.h:35)
==11354==    by 0x4BE6713: heap_strdupW (dwrite_private.h:66)
==11354==    by 0x4BE798C: add_localizedstring (main.c:462)
==11354==    by 0x4BC63DC: init_font_data_from_font (font.c:3367)
==11354==    by 0x4BC6BB3: fontfamily_add_oblique_simulated_face (font.c:3531)
==11354==    by 0x4BC7815: create_font_collection (font.c:3761)
==11354==    by 0x4BC810B: get_system_fontcollection (font.c:3978)
==11354==    by 0x4BEAA4F: dwritefactory3_GetSystemFontCollection (main.c:1449)
==11354==    by 0x4BE8256: IDWriteFactory5_GetSystemFontCollection
(dwrite_3.h:6626)
==11354==    by 0x4BE8256: dwritefactory_GetSystemFontCollection (???:0)
==11354==    by 0x4A26554: IDWriteFactory_GetSystemFontCollection
(dwrite.h:5416)
==11354==    by 0x4A26554: test_GetFontFamily (???:0)
==11354==    by 0x4A536FC: func_font (font.c:7824)
==11354==    by 0x4A7C235: run_test (test.h:603)
==11354==    by 0x4A7C694: main (test.h:687)
==11354==

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list