bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

null iconv outbuf


From: Ilya N. Golubev
Subject: null iconv outbuf
Date: Tue, 22 Apr 2003 16:10:07 (GMT)

Versions: all at least since 20-Apr-98

`charset.texi' says about iconv():

> If @var{outbuf} or @address@hidden is a null pointer, the
> conversion is performed but no output is available.

But `iconv.c' unconditionally dereferences `outbuf', at least when

!(__builtin_expect (inbuf == NULL || *inbuf == NULL, 0))

This causes segv when `outbuf' is a null pointer.

I do not submit a patch since I have not figured out which output
pointers are allowed by `__gconv' called by `iconv'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]