Article View: linux.debian.bugs.dist
Article #5693Bug#1154962: plotutils: SVG plotter leaks params and color cache in pl_deletepl_r()
From: Reini Urban
Date: Mon, 23 Nov 2026 07:50
Date: Mon, 23 Nov 2026 07:50
41 lines
3632 bytes
3632 bytes
--===============0335035161459897562== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Package: plotutils Version: 2.6-15 Severity: normal Tags: patch upstream _pl_s_terminate() in libplot/s_defplot.c has an empty body, unlike every other Plotter type, which calls _pl_g_terminate(). pl_deletepl_r() on an SVG plotter therefore leaks the PlotterParams copies and the color name cache (valgrind: 115 bytes definitely lost in 30 blocks). Patch attached (debian/patches/43_svg-terminate-leak.patch); forwarded to https://github.com/radfordneal/plotutils/pull/1 --===============0335035161459897562== Content-Type: text/x-diff Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="43_svg-terminate-leak.patch" MIME-Version: 1.0 RGVzY3JpcHRpb246IFNWR1Bsb3R0ZXI6IGNhbGwgdGhlIGdlbmVyaWMgdGVybWluYXRlIG1ldGhv ZAogX3BsX3NfdGVybWluYXRlKCkgaGFkIGFuIGVtcHR5IGJvZHksIHdoaWxlIGV2ZXJ5IG90aGVy IFBsb3R0ZXIgdHlwZSBjaGFpbnMKIHVwIHRvIF9wbF9nX3Rlcm1pbmF0ZSgpLiBTbyBwbF9kZWxl dGVwbF9yKCkgb24gYW4gU1ZHIHBsb3R0ZXIgbGVha2VkIHRoZQogUGxvdHRlcidzIGNvcGllcyBv ZiB0aGUgUGxvdHRlclBhcmFtcyAoX3BsX2dfY29weV9wYXJhbXNfdG9fcGxvdHRlcikgYW5kCiB0 aGUgY29sb3IgbmFtZSBjYWNoZS4gRm91bmQgd2l0aCB2YWxncmluZCB2aWEgTGlicmVEV0cncyBk d2dwbG90LgpBdXRob3I6IFJlaW5pIFVyYmFuIDxyZWluaS51cmJhbkBnbWFpbC5jb20+CkZvcndh cmRlZDogaHR0cHM6Ly9naXRodWIuY29tL3JhZGZvcmRuZWFsL3Bsb3R1dGlscy9wdWxsLzEKTGFz dC1VcGRhdGU6IDIwMjYtMTEtMjMKCi0tLSBhL2xpYnBsb3Qvc19kZWZwbG90LmMKKysrIGIvbGli cGxvdC9zX2RlZnBsb3QuYwpAQCAtMTkxLDYgKzE5MSwxMCBAQCBfcGxfc190ZXJtaW5hdGUgKFNf X18oUGxvdHRlciAqX3Bsb3R0ZXIpCiB2b2lkCiBfcGxfc190ZXJtaW5hdGUgKFNfX18oUGxvdHRl ciAqX3Bsb3R0ZXIpKQogeworICAvKiBmcmVlIHRoZSBQbG90dGVyJ3MgY29waWVzIG9mIHRoZSBj bGFzcyBwYXJhbWV0ZXJzIGFuZCBpdHMgY29sb3IgbmFtZQorICAgICBjYWNoZTsgZXZlcnkgb3Ro ZXIgUGxvdHRlciB0eXBlIGNoYWlucyB1cCB0byB0aGUgZ2VuZXJpYyB0ZXJtaW5hdGUKKyAgICAg bWV0aG9kLCBidXQgdGhpcyBvbmUgZGlkIG5vdCBhbmQgc28gbGVha2VkIHRoZW0gKi8KKyAgX3Bs X2dfdGVybWluYXRlIChTX19fKF9wbG90dGVyKSk7CiB9CiAKICNpZmRlZiBMSUJQTE9UVEVSCg== --===============0335035161459897562==--
Technical Details
Message-ID:
<O2wYh-dCVh-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Reini Urban <reini.urban@gmail.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154962: plotutils: SVG plotter leaks params and color cache in pl_deletepl_r() Date: Mon, 23 Nov 2026 08:50:01 +0100 Message-ID: <O2wYh-dCVh-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 23 07:43:13 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: 1.401 Reply-To: Reini Urban <reini.urban@gmail.com>, 1154962@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: ametzler@debian.org X-Debian-Pr-Message: report 1154962 X-Debian-Pr-Package: plotutils X-Debian-Pr-Keywords: patch upstream X-Debian-Pr-Source: plotutils MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0335035161459897562==" X-Greylist: delayed 364 seconds by postgrey-1.37 at buxtehude; Mon, 23 Nov 2026 07:40:43 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004343 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 41 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 23 Nov 2026 08:34:25 +0100 (CET) X-Original-Message-ID: <20261123073425.A4CA0F60750@reinip50>