Re: [PATCH v5 3/8] regex.3: Desoupify regerror() description

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

 




On 4/20/23 17:35, наб wrote:
> +.I errcode
> +must be the latest error returned from an operation on
> +.IR preg .
> +If
> +.I preg
> +is a null pointer\(emthe latest error.

I don't read that from the POSIX spec.  If preg is NULL, then I think any
error returned by a call to one of these APIs would be valid.  In fact,
since these functions are MT-Safe, they can't store any state, which leads
me to think that they can't really distinguish between the latest error,
and an error returned at a random point in the past, or even the result of
csrand_interval(x, y)[1] with appropriate x and y.

[1]:  <https://github.com/shadow-maint/shadow/blob/c80788a3ac092bc5abfa89ff48060d3f95cd5812/libmisc/csrand.c#L93>

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

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