public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17477] New: __gconv_get_path crashes if GCONV_PATH set and no current directory
@ 2014-10-11  9:08 fweimer at redhat dot com
  2015-08-27 22:24 ` [Bug locale/17477] " jsm28 at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: fweimer at redhat dot com @ 2014-10-11  9:08 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17477

            Bug ID: 17477
           Summary: __gconv_get_path crashes if GCONV_PATH set and no
                    current directory
           Product: glibc
           Version: 2.20
               URL: https://bugzilla.redhat.com/show_bug.cgi?id=1151551
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
             Flags: security-

In this piece of code, strlen should only be called if cwd is not NULL:

      /* Append the default path to the user-defined path.  */
      size_t user_len = strlen (__gconv_path_envvar);

      gconv_path_len = user_len + 1 + sizeof (default_gconv_path);
      gconv_path = alloca (gconv_path_len);
      __mempcpy (__mempcpy (__mempcpy (gconv_path, __gconv_path_envvar,
                       user_len),
                ":", 1),
             default_gconv_path, sizeof (default_gconv_path));
      cwd = __getcwd (NULL, 0);
      cwdlen = strlen (cwd);

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug locale/17477] __gconv_get_path crashes if GCONV_PATH set and no current directory
  2014-10-11  9:08 [Bug libc/17477] New: __gconv_get_path crashes if GCONV_PATH set and no current directory fweimer at redhat dot com
@ 2015-08-27 22:24 ` jsm28 at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17477

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |locale

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-27 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-11  9:08 [Bug libc/17477] New: __gconv_get_path crashes if GCONV_PATH set and no current directory fweimer at redhat dot com
2015-08-27 22:24 ` [Bug locale/17477] " jsm28 at gcc dot gnu.org

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).