Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5747154rwb; Tue, 17 Jan 2023 18:30:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXuorFX8EKfy4m/aCQGvVfHvQ8Y3aE/c2/k71WR5OBrFHzmplS3ItNqfs1xKmYiQ/TAO1sw2 X-Received: by 2002:a17:907:a80b:b0:86f:220e:94af with SMTP id vo11-20020a170907a80b00b0086f220e94afmr14294916ejc.56.1674009029328; Tue, 17 Jan 2023 18:30:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674009029; cv=none; d=google.com; s=arc-20160816; b=At643BWzQrdJJCCmYEkEJgdA4pzDxYwQ15FxD0P2vXqn/NMohVTvefsUHPI8RgBVfP g39vmXpzBXTFUhcCJymDcL9ync5Y4Mgu5ymMSKzSsi7hYAFBb2ztg1jFvZnEa6K30iKC 5AVW3zB+eB0w7s9jjeEVNLQ3ED7b0SQ8v7hDL1b0dDOJmivBS4KTOzoBRsrlchygSTkD SKeyMtvAaSYkX/ldQP7JZ/tAyg99Skxm92Y7L6h/Qyz5i6vxXT0FRHJ91Wt8bgTBh+wH zYyIi6WskrPhDsxrVh0Ey6fr7KVGrJCqQQeYFz/JNPW6aT9trqamQsomrgYfHQ0cyI9d OC1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:references :in-reply-to:message-id:date; bh=XNDWugz9zOouFKsVS6voFU48bpmwvAqAC/wSKOv8eOo=; b=biM161qpk5oh6UsEqtU5V0EqBZ7/Qbm+SNKTwc5/efG96EnKuIGEoB4Z7/Jw3MvTN+ SB4BSjBV6VYYk103XTiiIrRBh8sUZyRSIh98HJN6NSPFiZiINGImXKRyghIZVfC0F4ib mdQqW9bDazYe/77brD5py3OR/uUN60hpQPwy5XyEYXZRqY5RyA2MI6cOyYsTePDhN7Te 0fxT7SbSNChteX65l13N96z4Y24N3DhyISRGXjThrkgeox/rDHy8L58YKky0gh/YjOaG v2+WDbHaKqIz1jkmRMJCpUvlKR0QHE7ZDQ6NwAOhtytA8UAF1zze5Iw1zc/tiqnegAba f8hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds8-20020a170907724800b00872baebe5d0si4148851ejc.302.2023.01.17.18.30.09; Tue, 17 Jan 2023 18:30:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbjARCW2 (ORCPT + 63 others); Tue, 17 Jan 2023 21:22:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjARCWZ (ORCPT ); Tue, 17 Jan 2023 21:22:25 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E83521E8; Tue, 17 Jan 2023 18:22:23 -0800 (PST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NxTzx6TQ9z8RTZH; Wed, 18 Jan 2023 10:22:21 +0800 (CST) Received: from szxlzmapp04.zte.com.cn ([10.5.231.166]) by mse-fl1.zte.com.cn with SMTP id 30I2MIW2051571; Wed, 18 Jan 2023 10:22:18 +0800 (+08) (envelope-from yang.yang29@zte.com.cn) Received: from mapi (szxlzmapp04[null]) by mapi (Zmail) with MAPI id mid14; Wed, 18 Jan 2023 10:22:19 +0800 (CST) Date: Wed, 18 Jan 2023 10:22:19 +0800 (CST) X-Zmail-TransId: 2b0663c757dbffffffffeeb53db7 X-Mailer: Zmail v1.0 Message-ID: <202301181022195938376@zte.com.cn> In-Reply-To: References: 202212231052044562664@zte.com.cn,a81cb8cd088e715936895ec6bb07cfdc8fec37c1.camel@sipsolutions.net Mime-Version: 1.0 From: To: Cc: , , , , , , , , , , , , , , Subject: =?UTF-8?B?UmU6IFtQQVRDSCBuZXQtbmV4dF0gd2lmaTogYWlybzogdXNlIHN0cnNjcHkoKSB0byBpbnN0ZWFkIG9mIHN0cm5jcHkoKQ==?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 30I2MIW2051571 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 63C757DD.000 by FangMail milter! X-FangMail-Envelope: 1674008541/4NxTzx6TQ9z8RTZH/63C757DD.000/10.5.228.132/[10.5.228.132]/mse-fl1.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 63C757DD.000/4NxTzx6TQ9z8RTZH X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,T_SPF_PERMERROR,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Again, why bother. But is this even correct/identical behaviour?>> > Wouldn't it potentially read 17 input bytes before forcing NUL- > termination? Thank you for your reminder. This is a terrible error. Strscpy() may cause the array to be out of bounds. I should be more cautious next time. Xu and Yang