Re: Issue in man page strcat.3

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

 



Hi Helge,

On 12/4/22 10:07, Helge Kreutzmann wrote:
Without further ado, the following was found:

Issue:   The variable I<size> is not defined above in the summary? Is this I<n>?

"This function appends the null-terminated string I<src> to the string"
"I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a"
"terminating null byte to the result, I<unless> I<size> is less than"
"I<strlen(dest)>.  This function fixes the buffer overrun problem of"
"B<strcat>(), but the caller must still handle the possibility of data loss"
"if I<size> is too small.  The function returns the length of the string"
"B<strlcat>()  tried to create; if the return value is greater than or equal"
"to I<size>, data loss occurred.  If data loss matters, the caller I<must>"
"either check the arguments before the call, or test the function return"
"value.  B<strlcat>()  is not present in glibc and is not standardized by"
"POSIX, but is available on Linux via the I<libbsd> library."


The report is invalid. That 'size' refers to the strlcat(3) prototype, declared in the same NOTES section.

Cheers,

Alex

--
<http://www.alejandro-colomar.es/>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[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