public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/718] New: Fixes for libidn/, partially for gnulib
@ 2005-02-12 15:19 simon at josefsson dot org
  2005-02-12 15:20 ` [Bug libc/718] " simon at josefsson dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: simon at josefsson dot org @ 2005-02-12 15:19 UTC (permalink / raw)
  To: glibc-bugs

There are some problems with the current libidn/toutf8.c:stringprep_convert. 
For example, there is no buffer size overflow checks, and there is a memory leak
on failed realloc.  There may be other problems as well, I don't recall all of them.

I rewrote the function, and made it available stand-alone, and proposed it for
gnulib.  It was discussed at length on the gnulib list, and several improvements
were made as a result.  The following is the outcome of that work.  The attached
patch add iconvme.{c,h}, fixes Makefile, and update toutf8.c to use the new
function.

I would appreciate more review, and eventually that this is committed to CVS.

Thanks!

2005-02-12  Simon Josefsson  <jas@extundo.com>

	* iconvme.h, iconvme.c: New files, extracted from toutf8.c but
	improved.
	* toutf8.c: Include stringprep.h first, to make the compiler check
	that stringprep.h is standalone.  Improve comments.  Replace
	#include of errno.h and sys/param.h with iconvme.h.  Don't define
	ICONV_CONST.
	(stringprep_convert): Rewrite to use iconvme.h.

-- 
           Summary: Fixes for libidn/, partially for gnulib
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: simon at josefsson dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/718] Fixes for libidn/, partially for gnulib
  2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
@ 2005-02-12 15:20 ` simon at josefsson dot org
  2005-02-12 15:24 ` simon at josefsson dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: simon at josefsson dot org @ 2005-02-12 15:20 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From simon at josefsson dot org  2005-02-12 15:20 -------
Created an attachment (id=405)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=405&action=view)
Patch for libidn/toutf8.c that add iconvme


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/718] Fixes for libidn/, partially for gnulib
  2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
  2005-02-12 15:20 ` [Bug libc/718] " simon at josefsson dot org
@ 2005-02-12 15:24 ` simon at josefsson dot org
  2005-02-12 15:25 ` simon at josefsson dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: simon at josefsson dot org @ 2005-02-12 15:24 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From simon at josefsson dot org  2005-02-12 15:24 -------
Sorry, I didn't check that iconvme.c worked inside libc, HAVE_ICONV must be
defined.  Use the new patch below instead.

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/718] Fixes for libidn/, partially for gnulib
  2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
  2005-02-12 15:20 ` [Bug libc/718] " simon at josefsson dot org
  2005-02-12 15:24 ` simon at josefsson dot org
@ 2005-02-12 15:25 ` simon at josefsson dot org
  2005-02-17  3:45 ` gotom at debian dot or dot jp
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: simon at josefsson dot org @ 2005-02-12 15:25 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From simon at josefsson dot org  2005-02-12 15:25 -------
Created an attachment (id=406)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=406&action=view)
Updated libc/libidn patch for iconvme


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/718] Fixes for libidn/, partially for gnulib
  2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
                   ` (2 preceding siblings ...)
  2005-02-12 15:25 ` simon at josefsson dot org
@ 2005-02-17  3:45 ` gotom at debian dot or dot jp
  2005-02-22  1:26 ` drepper at redhat dot com
  2005-02-22  1:26 ` drepper at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: gotom at debian dot or dot jp @ 2005-02-17  3:45 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|gotom at debian dot or dot  |drepper at redhat dot com
                   |jp                          |
             Status|NEW                         |ASSIGNED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/718] Fixes for libidn/, partially for gnulib
  2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
                   ` (3 preceding siblings ...)
  2005-02-17  3:45 ` gotom at debian dot or dot jp
@ 2005-02-22  1:26 ` drepper at redhat dot com
  2005-02-22  1:26 ` drepper at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: drepper at redhat dot com @ 2005-02-22  1:26 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #405 is|0                           |1
           obsolete|                            |


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/718] Fixes for libidn/, partially for gnulib
  2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
                   ` (4 preceding siblings ...)
  2005-02-22  1:26 ` drepper at redhat dot com
@ 2005-02-22  1:26 ` drepper at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: drepper at redhat dot com @ 2005-02-22  1:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2005-02-22 01:26 -------
Applied after minor cleanups.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=718

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2005-02-22  1:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-12 15:19 [Bug libc/718] New: Fixes for libidn/, partially for gnulib simon at josefsson dot org
2005-02-12 15:20 ` [Bug libc/718] " simon at josefsson dot org
2005-02-12 15:24 ` simon at josefsson dot org
2005-02-12 15:25 ` simon at josefsson dot org
2005-02-17  3:45 ` gotom at debian dot or dot jp
2005-02-22  1:26 ` drepper at redhat dot com
2005-02-22  1:26 ` drepper at redhat dot com

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