source:
patches/glibc-2.4-iconv_fix-1.patch@
70623a4
Last change on this file since 70623a4 was 49174f3, checked in by , 18 years ago | |
---|---|
|
|
File size: 2.6 KB |
-
iconv/gconv_db.c
Submitted By: Joe Ciccone <jciccone@gmail.com> Date: 2006-06-19 Initial Package Version: 2.4 Upstream Status: In CVS Origin: https://bugzilla.samba.org/show_bug.cgi?id=3678 Description: Fixes a problem that showed up in samba. It would fail to start with the following error. smbd: gconv_db.c:232: __gconv_release_step: Assertion `step->__end_fct == ((void *)0)' failed. diff -Naur glibc-2.4.orig/iconv/gconv_db.c glibc-2.4/iconv/gconv_db.c
old new 1 1 /* Provide access to the collection of available transformation modules. 2 Copyright (C) 1997-2003, 2004, 2005 Free Software Foundation, Inc.2 Copyright (C) 1997-2003, 2004, 2005, 2006 Free Software Foundation, Inc. 3 3 This file is part of the GNU C Library. 4 4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. 5 5 … … 227 227 step->__shlib_handle = NULL; 228 228 #endif 229 229 } 230 else 230 else if (step->__shlib_handle == NULL) 231 231 /* Builtin modules should not have end functions. */ 232 232 assert (step->__end_fct == NULL); 233 233 } -
iconvdata/Makefile
diff -Naur glibc-2.4.orig/iconvdata/Makefile glibc-2.4/iconvdata/Makefile
old new 65 65 include ../Makeconfig 66 66 67 67 ifeq (yes,$(build-shared)) 68 tests = bug-iconv1 bug-iconv2 tst-loading tst-e2big tst-iconv4 bug-iconv4 68 tests = bug-iconv1 bug-iconv2 tst-loading tst-e2big tst-iconv4 bug-iconv4 \ 69 tst-iconv6 69 70 ifeq ($(have-thread-library),yes) 70 71 tests += bug-iconv3 71 72 endif -
iconvdata/tst-iconv6.c
diff -Naur glibc-2.4.orig/iconvdata/tst-iconv6.c glibc-2.4/iconvdata/tst-iconv6.c
old new 1 /* BZ #2569 */ 2 3 #include <iconv.h> 4 #include <stdio.h> 5 6 static int 7 do_test (void) 8 { 9 iconv_t cd0 = iconv_open ("ISO-8859-7", "UTF-16LE"); 10 if (cd0 == (iconv_t) -1) 11 { 12 puts ("first iconv_open failed"); 13 return 1; 14 } 15 iconv_t cd1 = iconv_open ("ISO-8859-7", "UTF-16LE"); 16 if (cd1 == (iconv_t) -1) 17 { 18 puts ("second iconv_open failed"); 19 return 1; 20 } 21 if (iconv_close (cd0) != 0) 22 { 23 puts ("first iconv_close failed"); 24 return 1; 25 } 26 if (iconv_close (cd1) != 0) 27 { 28 puts ("second iconv_close failed"); 29 return 1; 30 } 31 return 0; 32 } 33 34 #define TEST_FUNCTION do_test () 35 #include "../test-skeleton.c"
Note:
See TracBrowser
for help on using the repository browser.