[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bsd-nomads:15543] Re:
梅本@日立です。
>>>>> On Mon, 14 May 2001 13:05:33 +0900 (JST),
>>>>> ume@bisd.hitachi.co.jp (うめ) said:
うめ> アドレスの妥当性チェックが netmask とかクラスを考慮してないですね。
うめ> tcpip.c を見るとこんなことしてる。
うめ>
うめ> if (!_validByte(a) || !_validByte(b) || !_validByte(c) ||
うめ> !_validByte(d) || (d == 0) || (d == 255))
うめ> return 0;
>>>>> On Mon, 14 May 2001 09:03:39 +0900,
>>>>> "Kazuhide Yamasaki" <yamasaki@tsuruga.co.jp> said:
yamasaki> 4.2Rの時も同様にインストールしましたが、このようなことは
yamasaki> ありませんでした。
というのを見落としてたので、なぜだろうと思って調べてみたら、
http://www.freebsd.org/cgi/cvsweb.cgi/src/release/sysinstall/Attic/tcpip.c.diff?r1=1.103.2.9&r2=1.103.2.10
Revision 1.103.2.10 / (download) - annotate - [select for diffs], Mon Mar 12
12:10:34 2001 UTC (2 months ago) by jkh
Branch: RELENG_4
CVS Tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Changes since 1.103.2.9: +93 -15 lines
Diff to previous 1.103.2.9 (colored) to branchpoint 1.103 (colored) next main
1.104 (colored)
MFC: OK, reviewing all of these changes actually shows them to be
more benign than first thought and they certainly provide a number
of important bug fixes. The modules code will probably remain
dormant in 4.3 but it helps code maintainance to keep it synced up
anyway. The softupdates support code also turned out to be so
trivial that it's a low-risk feature addition.
で、d == 0 のチェックが増えたせいです。うーむ。
--
梅本 肇@(株)日立製作所 情報サービス事業部
E-Mail: ume@bisd.hitachi.co.jp ume@mahoroba.org ume@{,jp.}FreeBSD.org
URL: http://www.imasy.org/~ume/