[Bug 50363]

Florian Weimer fweimer at redhat.com
Wed Apr 10 09:11:54 UTC 2019


Only crashes on startup have been reported, so flagging as security-.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/50363

Title:
  libc6-amd64 on edgy (2.4-1ubuntu4) fails on samba

Status in GLibC:
  Fix Released
Status in samba:
  Fix Released
Status in glibc package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: libc6-amd64

  ..at least.
  It gets a signal 6 (abort) and refuse to startup.

  On samba bug list the bug is listed as glibc bug, and ubuntu glibc 2.4 has this bug.
  It is a wrong assert on gconv_db.c.

  I have added following patch to submitted-new-brf-encoding.diff and
  recompiled and samba goes back to work.

  Index: iconv/gconv_db.c
  ===================================================================
  --- iconv/gconv_db.c    2005/12/19 07:25:25     1.52
  +++ iconv/gconv_db.c    2006/04/25 17:45:02     1.53
  @@ -1,5 +1,5 @@
   /* Provide access to the collection of available transformation modules.
  -   Copyright (C) 1997-2003, 2004, 2005 Free Software Foundation, Inc.
  +   Copyright (C) 1997-2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      This file is part of the GNU C Library.
      Contributed by Ulrich Drepper <drepper at cygnus.com>, 1997.

  @@ -227,7 +227,7 @@
         step->__shlib_handle = NULL;
   #endif
       }
  -  else
  +  else if (step->__shlib_handle == NULL)
       /* Builtin modules should not have end functions.  */
       assert (step->__end_fct == NULL);
   }
  Index: iconvdata/Makefile,v
  ===================================================================
  --- iconvdata/Makefile  2006/04/04 07:08:07     1.144
  +++ iconvdata/Makefile  2006/04/25 17:43:23     1.145
  @@ -65,7 +65,8 @@
   include ../Makeconfig

   ifeq (yes,$(build-shared))
  -tests = bug-iconv1 bug-iconv2 tst-loading tst-e2big tst-iconv4 bug-iconv4
  +tests = bug-iconv1 bug-iconv2 tst-loading tst-e2big tst-iconv4 bug-iconv4 \
  +       tst-iconv6
   ifeq ($(have-thread-library),yes)
   tests += bug-iconv3
   endif
  --- /dev/null   2006-05-19 09:36:15.392921104 +0200
  +++ libc/iconvdata/tst-iconv6.c 2006-05-19 15:46:23.000000000 +0200
  @@ -0,0 +1,35 @@
  +/* BZ #2569 */
  +
  +#include <iconv.h>
  +#include <stdio.h>
  +
  +static int
  +do_test (void)
  +{
  +  iconv_t cd0 = iconv_open ("ISO-8859-7", "UTF-16LE");
  +  if (cd0 == (iconv_t) -1)
  +    {
  +      puts ("first iconv_open failed");
  +      return 1;
  +    }
  +  iconv_t cd1 = iconv_open ("ISO-8859-7", "UTF-16LE");
  +  if (cd1 == (iconv_t) -1)
  +    {
  +      puts ("second iconv_open failed");
  +      return 1;
  +    }
  +  if (iconv_close (cd0) != 0)
  +    {
  +      puts ("first iconv_close failed");
  +      return 1;
  +    }
  +  if (iconv_close (cd1) != 0)
  +    {
  +      puts ("second iconv_close failed");
  +      return 1;
  +    }
  +  return 0;
  +}
  +
  +#define TEST_FUNCTION do_test ()
  +#include "../test-skeleton.c"

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/50363/+subscriptions



More information about the foundations-bugs mailing list