public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: William Brana <wbrana@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: libXcursor + -finline-functions: Invalid read of size 4
Date: Tue, 12 Aug 2014 15:17:00 -0000	[thread overview]
Message-ID: <53EA3011.4020302@redhat.com> (raw)
In-Reply-To: <CAJ7jCmmGsOhKxhj_vTzBo36BgueGW580xEkdZ9Ur_HKCE-WMTQ@mail.gmail.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

      reply	other threads:[~2014-08-12 15:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-08 11:15 William Brana
2014-08-11  8:43 ` Florian Weimer
2014-08-12 14:57   ` William Brana
2014-08-12 15:17     ` Florian Weimer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53EA3011.4020302@redhat.com \
    --to=fweimer@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=wbrana@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).