lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080528.201322.26342915.yoshfuji@linux-ipv6.org>
Date:	Wed, 28 May 2008 20:13:22 +0900 (JST)
From:	YOSHIFUJI Hideaki / 吉藤英明 
	<yoshfuji@...ux-ipv6.org>
To:	yanghy@...fujitsu.com
Cc:	netdev@...r.kernel.org, yjwei@...fujitsu.com,
	wangchen@...fujitsu.com, davem@...emloft.net,
	yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH] IPv6: Fix the data length of get destination options
 with short length

In article <483D0070.2090909@...fujitsu.com> (at Wed, 28 May 2008 14:49:20 +0800), Yang Hongyang <yanghy@...fujitsu.com> says:

>   If get destination options with length which is not enough for that
> option,getsockopt() will still return the real length of the option,
> which is larger then the buffer space.
>   This is because ipv6_getsockopt_sticky() returns the real length of
> the option.
> 
> This patch fix this problem.

POSIX says that the object pointed to by the option_len argument shall be
modified to indicate the actual length of the value.
Do you think this change conforms to the spec?

--yoshfuji
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ