# $B%(%i!\<%A%'%C%/$N$J$$(Bmalloc

**URL:** <https://www.ruby-forum.com/t/b-i-a-c-n-j-bmalloc/98822>\
**Category:** Development\
**Created:** [July 18, 2006, 1:32pm UTC](https://www.ruby-forum.com/t/b-i-a-c-n-j-bmalloc/98822 "2006-07-18T13:32:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [July 18, 2006, 1:32pm UTC](https://www.ruby-forum.com/t/b-i-a-c-n-j-bmalloc/98822/1 "2006-07-18T13:32:54Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

[http://www.nongnu.org/failmalloc/](http://www.nongnu.org/failmalloc/)e$B$r8+$F!“e(Bmalloce$B$NLa$jCM$re(B  
e$B%A%'%C%/$7$F$J$$%3!\<%I$rC5$7$?$N$G$9$,!”$U$?$D$[$IH=CG$G$-$Je(B  
e$B$$%U%!%$%k$,$"$j$^$7$?!#e(B

win32/win32.c:2488e$B9TL\e(B  
proto\_buffers = (WSAPROTOCOL\_INFO \*)malloc(proto\_buffers\_len);

wince/wince.c:32e$B9TL\e(B  
lpFileNameW = (LPWSTR)malloc( size\*sizeof(wchar\_t) );

wince/wince.c:66e$B9TL\e(B  
\_commandLine = (char\*)malloc( strlen(acmd)+5 );

wince/wince.c:545e$B9TL\e(B  
buf = malloc( len+1 );

wince/wince.c:563e$B9TL\e(B  
wbuf = (wchar\_t\*)malloc( (length+1)\*sizeof(wchar\_t) );

wince/wince.c:578e$B9TL\e(B  
pChar = (char\*)malloc(charlength+1);

e$B$$$:$l$be(Bxmalloc()(e$B$^$?$Oe(Bruby\_xmalloc())e$B$r8F$Y$P2r7h$9$k$H;We(B  
e$B$&$N$G$9$,!"$J$K$V$s;d$N$o$+$i$J$$%W%i%C%H%U%)!\<%`$J$N$GCG8@e(B  
e$B$G$-$^$;$s!#e(B

---

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [July 18, 2006, 3:25pm UTC](https://www.ruby-forum.com/t/b-i-a-c-n-j-bmalloc/98822/2 "2006-07-18T15:25:03Z")

</div>

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:29060] e$B%(%i!\<%A%'%C%/$N$J$$e(Bmalloc”  
on Jul.18,2006 20:30:35, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
| [http://www.nongnu.org/failmalloc/](http://www.nongnu.org/failmalloc/)e$B$r8+$F!“e(Bmalloce$B$NLa$jCM$re(B  
| e$B%A%'%C%/$7$F$J$$%3!\<%I$rC5$7$?$N$G$9$,!”$U$?$D$[$IH=CG$G$-$Je(B  
| e$B$$%U%!%$%k$,$"$j$^$7$?!#e(B  
|  
| win32/win32.c:2488e$B9TL\e(B  
| proto\_buffers = (WSAPROTOCOL\_INFO \*)malloc(proto\_buffers\_len);

e$B$3$l$Oe(Bruby\_xmalloce$B$G$$$$$H;W$$$^$9$N$G!"D\>$7$F$\*$-$^$9!#e(B

| wince/wince.c:32e$B9TL\e(B  
| lpFileNameW = (LPWSTR)malloc( size_sizeof(wchar\_t) );  
|  
| wince/wince.c:66e$B9TL\e(B  
| \_commandLine = (char_)malloc( strlen(acmd)+5 );  
|  
| wince/wince.c:545e$B9TL\e(B  
| buf = malloc( len+1 );  
|  
| wince/wince.c:563e$B9TL\e(B  
| wbuf = (wchar\_t\*)malloc( (length+1)_sizeof(wchar\_t) );  
|  
| wince/wince.c:578e$B9TL\e(B  
| pChar = (char_)malloc(charlength+1);

e$B$=$b$=$b:G6a$Oe(BWinCEe$BHG$O:n$l$k$N$G$7$g$&$+!“$H$+$$$&5?Ld$b$”$Ce(B  
e$B$?$j$7$F!#e(B  
e$B?"\>\>$5$s$O:G6a$O8+$F$i$C$7$c$k$N$+$7$ie(B?

e$B$=$l$G$O!#e(B
