From: koh-i@kubota.co.jp (Koh-ichi Ito)
Subject: Re: When Xfree() passed NULL as the argument...
Organization: Kubota Computer INC. Tokyo, Japan
Distribution: fj
Date: Mon, 31 Aug 1992 00:34:20 GMT
	<ASAMI.92Aug29133335@antipodes.cs.Berkeley.EDU>
	<SHIGEYA.92Aug30133541@dink.foretune.co.jp>

$B$$$H$&!w855-;vEj9F?M$G$9!#(B

$B;d$,Ej9F$7$?(B Xfree() $B$K4X$9$k<ALd$K$D$$$F!"8=:_$N$H$3$m!"(B

	$B$"$5$_!w%+(B$B%j%U%)%k%K%"(B $B$5$s(B
	$BCfLn!w>>2<%7%9%F%`(B $B$5$s(B
	$B$9$:$-$7$2$d(B $B$5$s(B

$B$+$i%U%)%m!<$r$$$?$@$$$F$*$j$^$9!#3'$5(B$B$s!"$I$&$b$"$j$,$H$&$4(B
$B$6$$$^$9!#(B

>>>>> On Sun, 30 Aug 1992 04:35:41 GMT, shigeya@foretune.co.jp (Shigeya Suzuki) said:
$B$9$:$-$5$s(B> Nntp-Posting-Host: dink.foretune.co.jp

$B$9$:$-$5$s(B> $B$9$:$-$G$9!#(B

$B$9$:(B$B$-$5$s(B> $B$"$5$_$5$s(Bwrote:
		:
		:
$B$9$:$-$5$s(B> K&R II
$B$9$:$-$5$s(B>     ~~
$B$9$:$-$5$s(B>     $B",$r$3$3$G0z$-(B$B9g$$$K=P$9$N$O$A$H$^$:$$$s$8$c$J$$$+$H;W$&$N$G$9$,!#(B


$B$&!<$s!"$?$7$+$K$^$:$$$s$G$9!#(B


$B$9$:$-$5$s(B> $B!t(B $B3NG'$7$h$&$H$*$b$C$F(B K&R I $BC5$7$?$s$G$9$,!"0l:}$b=P$F$3$J$$!#(B
$B$9$:$-$5$s(B> $B!t(B $B$"$l$@$1$"$C$?$N$K!D!D(B $B$I$J$?$+%U%)%m!<$7$F$$$?$@$1$^$;$s$+!#(B


$B:w0z$G(B free $B$r0z$$$F!"$=$N6aJU$rFI$s$@8B$j$O2?$b=q$$$F$J$$$h(B$B$&$G$9!#(B


>>>>> On 29 Aug 92 09:48:43 GMT, nakake@sys3.osk.mse.mei.co.jp (Keisuke Nakano) said:

$BCfLn(B$B$5$s(B> SunOS 4.X JLE $B$G$O!"BLL\$_$?$$$G$9!#(Bcore dump $B$7$F$7$^$$$^$9!#(B


$B:G=i!"%H%i%V%k$r5/$3$7$?%^%7%s(B$B$O!"J@<R(B Titan $B$G!"(BOS $B$K4X$7$F(B
$B$O<RFb%P!<%8%g%s$J$N$G>\:Y$O8f4*J[2<$5$$!#%^%K%e%"%k$K$b!"(B

     Undefined results occur if the space assigned by malloc is
     overrun or if some random number is handed to free.

$B$H=q$$$F$"$j$^$9$N$G!"(BK&R II $B$K$O=>$C$F$$$^$;$s$,!"(Bcore $B$rEG(B
$B$/$N$O;EMM$N$h$&$G$9!#(B

$BB>$K?H(B$B6a$K$"$k%^%7%s$rD4$Y$F$_$?$H$3$m!"$d$O$jJ@<R$N%^%7%s$G(B 
mips M/120, RISC/os 4.52 $B$O!"%^%K%e%"%k$K$O(B

     Needless to say, grave disorder will result if the space
     assigned by malloc is overrun or if some random number is
     handed to free.

$B$H=q$$$F$"$k$b$N$N!"(Bcore $B$OEG$+$:!"@5>o=*N;$7$^$7$?!#(B

Sun3/50 SunOS 4.1.1 ($B$&$A$O(B JLE $B$J$7$G$9(B)$B$G$O!"%^%K%e%"%k$K(B
$B$OFC$K5-=R$O$J$$$h$&$G$7$?$,!"CfLn$5$s$,D4(B$B$Y$F2<$5$C$?(B 4.X
JLE $BF1MM!"(Bcore $B$rEG$-$^$7$?!#(B

$BF1N=$,J@<R(B Titan Vistra (OS $B$O(B SVR4 $B$G$9(B)$B$N%^%K%e%"%k(B$B$rD4$Y(B
$B$F$/$l$?$H$3$m!"(BNULL $B$J$i2?$b$7$J$$!"$HL@5-$7$F$"$j$^$7$?!#(B


$BCfLn$5$s(B> reno $B$N%=!<%9$G$O$A$c$s(B$B$H!"(B

$BCfLn$5$s(B> if (cp == NULL)
$BCfLn$5$s(B> 	return;

$BCfLn$5$s(B> $B$H$J$C$F$$$k$h$&$G$9!#(Breno $B$N(B malloc.o $B$r%j%s%/$9$k$H$$$&<j$b$"(B
$BCfLn$5$s(B> $B$k$J!#(B


$B$^$!!"$=$3$^$G$9$k$J$i!"(BXlibint.h $B$N(B #define $B$r>C$7$F!"0z(B$B?t(B
$B%A%'%C%/$D$-(B Xfree() $B$rDj5A$7D>$7$?J}$,3Z$J$h$&$J5$$,$7$^$9!#(B

$B0zB3$-%"%I%P%$%9$r$*BT$A$7$^$9!#$h$m(B$B$7$/$*4j$$$7$^$9!#(B
--
	$B%/%\%?%3%s%T%e!<%?3t<02q<R(B	Kubota Computer INC.
       $B%Y!<%7%C%/%7%9%F%`It(B $BBh(B$B0l2](B	Basic System I
			 $B0KF#(B $B9b0l(B	Koh-ichi Ito
Newsgroups: fj.windows.x