This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: libXcursor + -finline-functions: Invalid read of size 4
- From: Florian Weimer <fweimer at redhat dot com>
- To: William Brana <wbrana at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Aug 2014 17:17:37 +0200
- Subject: Re: libXcursor + -finline-functions: Invalid read of size 4
- Authentication-results: sourceware.org; auth=none
- References: <CAJ7jCmkE3sL95GHe+VruBk9EN7qBfTSFAa_t2dc=0H0w=kwGDw at mail dot gmail dot com> <53E8822F dot 3010100 at redhat dot com> <CAJ7jCmmGsOhKxhj_vTzBo36BgueGW580xEkdZ9Ur_HKCE-WMTQ at mail dot gmail dot com>
On 08/12/2014 04:57 PM, William Brana wrote:
Can you run valgrind with debugging information? It might us tell us at
least which allocation is too short.
It could be a harmless over-read from the libc string functions
(particularly if valgrind has not been set up correctly on your system).
==43000== at 0x89019F3: XcursorScanTheme.part.0 (library.c:137)
From library.c:
137 full = malloc (strlen (dir) + 1 + strlen (subdir) + 1 +
strlen (file) + 1);
So this looks indeed like a strlen implementation (possibly inlined)
which is not properly instrumented.
--
Florian Weimer / Red Hat Product Security