xsi_message_queue: Permit incoming buffer to be NULL.
The user address space has not included NULL for a while, so this has actually been broken for years, and nobody noticed. I guess XSI message queues are not very well used? Fixes the in-tree "xsi_msg_queue_test1".
This commit is contained in:
@@ -494,7 +494,7 @@ _user_xsi_msgctl(int messageQueueID, int command, struct msqid_ds *buffer)
|
|||||||
TRACE_ERROR(("xsi_msgctl: message queue id %d not valid\n", messageQueueID));
|
TRACE_ERROR(("xsi_msgctl: message queue id %d not valid\n", messageQueueID));
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
if (!IS_USER_ADDRESS(buffer)) {
|
if (buffer != NULL && !IS_USER_ADDRESS(buffer)) {
|
||||||
TRACE_ERROR(("xsi_msgctl: buffer address is not valid\n"));
|
TRACE_ERROR(("xsi_msgctl: buffer address is not valid\n"));
|
||||||
return B_BAD_ADDRESS;
|
return B_BAD_ADDRESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user