[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#883407: libc6: getpwnam_r() leaks memory



Package: libc6
Version: 2.25-3
Severity: normal

Dear Maintainer,

valgrinding a C code shows the following:

==27943== 4,096 bytes in 1 blocks are definitely lost in loss record 3 of 3
==27943==    by 0x6C27715: getpwnam_r@@GLIBC_2.2.5 (getXXbyYY_r.c:314)
==27943==    by 0x4E8569F: rpl_glob (glob.c:781)

That rpl_glob() is gnulib's glob replacement. The code there looks good.
And valgrind doesn't/didn't show this leak with previous (2.24 and lower)
versions of glibc.

I can't currently provide you with a short reproducer (out of time here).

Regards, Tim

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-1-amd64 (SMP w/16 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: