Details
[Home]
Issue of the Standard # S0008
Brief
Lack of details in requirements to
Detailed Description
Specification of
ptr_t __mempcpy(ptr_t restrict dest,
const ptr_t restrict src,
size_t n
);
does not describe function’s behavior in following cases:
- one or both of function parameters dest and src are NULL;
- parameter n is 0;
- dest and src point to the areas that overlap;
- dest and src to the same area.
Problem location(s) in the standard
Linux Standard Base Core Specification 3.1, Chapter 13. Base Libraries, 13.5. Interface Definitions for libc, description of function __mempcpy.
Possible consequences
Possible different behavior of applications on LSB-compliant implementations.
Possible solutions
Define function’s behavior in the above cases or state that the behavior is undefined (or implementation-defined).
References
No references to this issue found.
Accepted
LSB Bugzilla, 1297
Status
Fixed in LSB 4.0
[Home]