NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/49683
On Feb 22, 2:00am, amirpli%gmail.com@localhost (Amir P) wrote:
-- Subject: Re: PR/49683
| A question:
|
| The actual change that has been implemented in chartype.c rev. 1.11 is:
|
| if (conv->csize < ++len)
| if (ct_conv_buff_resize(conv, (size_t)0, len + CT_BUFSIZ) == -1)
| return NULL;
|
| Please clarify - we need to enlarge conv->wbuff in case its size
| conv->wsize is less than len+1.
| So why does the check above compare len+1 to conv->csize, which is not
| related to the size of conv->wbuff?
It is wrong, I've split the functions.
christos
Home |
Main Index |
Thread Index |
Old Index