Re: Man Page `alloca()`: Important Info Is Missing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Robin Kuzmin <kuzmin.robin@xxxxxxxxx> hat am 10. Oktober 2018 um 23:40
> geschrieben:
> 
> 
> http://man7.org/linux/man-pages/man3/alloca.3.html
> 
> I compare this man page with the
> https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/alloca?view=vs-2017
> and I feel that a very important fragment is missing in the man page
> (although strictly speaking the man page is complete), the missing
> fragment is between the double asterisks (**):
> 
> The allocated space is automatically freed when the calling function
> exits **(not when the allocation merely passes out of scope)**.

My Version reads:
"This temporary space is automatically  freed  when  the function that called
alloca() returns to its caller."
I thing this is pretty clear.

re,
 wh


> 
> More info:
> * Know the Danger of alloca()
> https://github.com/kuzminrobin/code_review_notes/blob/master/cpp_design_bookmarks.md#know-the-danger-of-alloca
> 
> Robin Kuzmin
> CppCon 2018 Speaker Liaison
> speakers@xxxxxxxxxx
> 
> Robin Kuzmin
> kuzmin.robin@xxxxxxxxx
> Open for new positions
> (https://drive.google.com/open?id=1TmA8cXRxb_9lDnCREfYuIeGpJy9sMsXSpFVMK-0PwNo).



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux