| To: | yyyyyyyyyyyyyyy@xxxxxxxxxxxxx |
|---|---|
| Subject: | Defect in XSH mq_getattr() |
| From: | yyy@xxxxxxxxxxx |
| Date: | Tue, 14 Jan 2003 23:34:13 GMT |
Defect report from : Joseph Townsend , Sun Microsystems
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 783 line 25660-25661 section mq_getattr() objection {jan-4191477}
Problem:
Defect code : 3. Clarification required
The errors section for mq_getattr() currently requires
that the function return -1 and set errno to EBADF if
mqdes is not a vaild message queue descriptor.
The message queue descriptor is of type mqd_t and the standard does
not specify this type defintion. An implementation could define
this type to be an interger type or a pointer type. If the latter
then any random pointer value could be passed as the message queue
descriptor to mq_getattr(). This could happen if a programming
error resulting in mq_getattr() being called without mq_open()
being called first. This error condition is akin to readdir() being
called without opendir() being called first. The standard does not
require that readdir() detect this condition, merely, that if
detected, -1 is returned and that errno be set to EBADF. The wording
for mq_getattr() should be changed to match readdir() because the
situations are analogous, see proposed solution.
Action:
Request that the follow change be made
XSH, P783, L25660 from:
The mq_getattr() function shall fail if:
to:
The mq_getattr() function may fail if:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Defect in XBD unistd.h, bmark |
|---|---|
| Next by Date: | Re: Defect in XBD unistd.h, Ulrich Drepper |
| Previous by Thread: | Defect in XSH seteuid, david |
| Next by Thread: | Defect in XCU find -prune, bmark |
| Indexes: | [Date] [Thread] [All Lists] |