From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14218 invoked from network); 31 Oct 2022 17:25:55 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 31 Oct 2022 17:25:55 -0000 Received: (qmail 30600 invoked by uid 550); 31 Oct 2022 17:25:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30562 invoked from network); 31 Oct 2022 17:25:51 -0000 Date: Mon, 31 Oct 2022 13:25:39 -0400 From: Rich Felker To: puwenxu Cc: "musl@lists.openwall.com" Message-ID: <20221031172538.GC29905@brightrain.aerifal.cx> References: <27eb36689b5f470da01e1adbf99fad01@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27eb36689b5f470da01e1adbf99fad01@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Question on 2b2c8aafce9d80f9d58652643538f4d58e82b856 On Mon, Oct 31, 2022 at 03:41:43PM +0000, puwenxu wrote: > Dear maintainer, > I'm sorry for my last question firstly. > I'm not sure whether I have right to show you full test codes > because the discipline of my company is strict at it. The error > occurs when the test case is running the following code. > err = msgctl(msqid, IPC_STAT, NULL); This is an erroneous test case. The contract of msgctl with the IPC_STAT command is that the buf pointer must point to an object of type struct msqid_ds. NULL does not point to such an object. Rich