* miscfuncs.cc (check_iovec): Allow 0 as valid iovcnt value.
This commit is contained in:
parent
742e729664
commit
ef7e42ec0f
|
@ -1,3 +1,7 @@
|
||||||
|
2014-04-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* miscfuncs.cc (check_iovec): Allow 0 as valid iovcnt value.
|
||||||
|
|
||||||
2014-04-22 Corinna Vinschen <corinna@vinschen.de>
|
2014-04-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* ldap.cc (user_attr): Remove "uid" attribute.
|
* ldap.cc (user_attr): Remove "uid" attribute.
|
||||||
|
|
|
@ -196,7 +196,7 @@ dummytest (volatile char *p)
|
||||||
ssize_t
|
ssize_t
|
||||||
check_iovec (const struct iovec *iov, int iovcnt, bool forwrite)
|
check_iovec (const struct iovec *iov, int iovcnt, bool forwrite)
|
||||||
{
|
{
|
||||||
if (iovcnt <= 0 || iovcnt > IOV_MAX)
|
if (iovcnt < 0 || iovcnt > IOV_MAX)
|
||||||
{
|
{
|
||||||
set_errno (EINVAL);
|
set_errno (EINVAL);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -19,3 +19,6 @@ Bug Fixes
|
||||||
|
|
||||||
- Workaround a problem following native symlinks.
|
- Workaround a problem following native symlinks.
|
||||||
Fixes: http://cygwin.com/ml/cygwin/2014-04/msg00384.html
|
Fixes: http://cygwin.com/ml/cygwin/2014-04/msg00384.html
|
||||||
|
|
||||||
|
- Fix calls to readv/writev/recvmsg/sendmsg with 0 iovlen.
|
||||||
|
Fixes: http://cygwin.com/ml/cygwin/2014-04/msg00509.html
|
||||||
|
|
Loading…
Reference in New Issue