Multiple memory leaks in libgdiplus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libgdiplus (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Multiple memory leaks have been identified in libgdiplus library when the test code provided ibgdiplus/
0x7fce7e31a3d0 in GdipCreatePen1 /home/targets/
0x7fce7e36d4da in GdipCreateSolidFill /home/targets/
Following is the output of the testgdi.c when it is compiled with ASAN.
jpg drawn
tif drawn
gif drawn
png drawn
bmp drawn
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 127 requests (127 known processed) with 0 events remaining.
=======
==61628==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 504 byte(s) in 3 object(s) allocated from:
#0 0x7fce7e6a2602 in malloc (/usr/lib/
#1 0x7fce7e31a3d0 in gdip_pen_new /home/targets/
#2 0x7fce7e31a3d0 in GdipCreatePen1 /home/targets/
Direct leak of 256 byte(s) in 1 object(s) allocated from:
#0 0x7fce7e6a2602 in malloc (/usr/lib/
#1 0x7fce7bb720b9 (/usr/lib/
Direct leak of 168 byte(s) in 3 object(s) allocated from:
#0 0x7fce7e6a2602 in malloc (/usr/lib/
#1 0x7fce7e36d4da in gdip_solidfill_new /home/targets/
#2 0x7fce7e36d4da in GdipCreateSolidFill /home/targets/
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7fce7e6a2961 in realloc (/usr/lib/
#1 0x7fce7dbf325c (/usr/lib/
Indirect leak of 168 byte(s) in 3 object(s) allocated from:
#0 0x7fce7e6a2602 in malloc (/usr/lib/
#1 0x7fce7e36d4da in gdip_solidfill_new /home/targets/
#2 0x7fce7e36d4da in GdipCreateSolidFill /home/targets/
Indirect leak of 160 byte(s) in 2 object(s) allocated from:
#0 0x7fce7e6a279a in __interceptor_
#1 0x7fce7dbf322e (/usr/lib/
Indirect leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7fce7e6a279a in __interceptor_
#1 0x7fce7bb727c8 (/usr/lib/
Indirect leak of 16 byte(s) in 2 object(s) allocated from:
#0 0x7fce7e6a2602 in malloc (/usr/lib/
#1 0x7fce7dbf3cb5 (/usr/lib/
SUMMARY: AddressSanitizer: 1320 byte(s) leaked in 16 allocation(s)
Information requested:
# lsb_release -rd
Description: Ubuntu 16.04.6 LTS
Release: 16.04
#apt-cache policy libgdiplus
libgdiplus:
Installed: 4.2-1ubuntu1
Candidate: 4.2-1ubuntu1
Version table:
*** 4.2-1ubuntu1 500
500 http://
100 /var/lib/
Expected : No memory leaks while running the test code
What happened : Couple of memory leaks in libgdiplus component as indicated in the output.