.
I've push the fix into 4.9.46, so debian will include the fix when
rebase to 4.9.46+
Jack Wang
Linux Kernel Developer
ProfitBricks GmbH
-- Package-specific info:
** Version:
Linux version 4.9.0-3-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0
20170516 (Debian 6.3.0-18) ) #
Possible fix?
>From b6cea36a762f7532873c5e1e35fc29564398f7e4 Mon Sep 17 00:00:00 2001
From: Fabian Holler
Date: Mon, 25 Nov 2013 12:57:23 +0100
Subject: [PATCH] readproc: fix src_buffer and dst_buffer memory leaks
Jinpu Wang discovered that src_buffer and dst_buffer area allocated in
the openproc
Sorry, I need to correct my statement, the memory leak reported in
openproc instead of readproc.
if (!src_buffer){
src_buffer = xmalloc(MAX_BUFSZ);
dst_buffer = xmalloc(MAX_BUFSZ);
}
src_buffer and dst_buffer never free.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...
Package: libprocps0
Version: 1:3.3.3-7
We're using libprocps as below:
PROCTAB* proc = openproc(PROC_FILLARG | PROC_FILLSTAT);
proc_t proc_info;
// zero out the allocated proc_info memory
memset(&proc_info, 0, sizeof(proc_info));
while (readproc(proc, &proc_info) != NULL) { // <
4 matches
Mail list logo