Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2472419rwo; Thu, 3 Aug 2023 09:50:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEz1PKDTCDAHEQz3PY+IQhZHZiAezeyc0D/H1xh0W3CZZSwrQFsx0XwcSyLCQQynJWJzeS X-Received: by 2002:a17:906:189:b0:99b:f59c:9d90 with SMTP id 9-20020a170906018900b0099bf59c9d90mr7629903ejb.44.1691081458269; Thu, 03 Aug 2023 09:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691081458; cv=none; d=google.com; s=arc-20160816; b=J2Tty3tdN/1663k0GfanOWU4wwSfnBa//J49HJJ3LeEtdqmLkBPWFILK1J4VjqFPrv ZdLOJVOdUnyDui+VgHMM+CmkdS7FgbFk9yjgcmYk/i3GTVpZ6VLQBuFUz11WX5QCreJv 6t6YfLe3UpfWJVxL+UshYc+uSv/Ud0K3T5F2nhVSNTHfDMrO2RyMJ6uZqSBVflGY2ElW TC0kKiCr0oV1NvrQ3pw6Z8dk8QxAH+nozRCyAiijfj7MCaKki9a7DVHQPL1Da6YSy/nv Qeiiyp/RMclY11zoZD0dSIpLheg2MwzTsr8G4+5zDnZLLHp782R6VE2FeUhVrxG+SMpa Pj0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3yS7Bk6ZoruxTjcr7x52JRkzRI7i9y1ZSdoNmvk3B5I=; fh=chjenQztvyUNmyQlNWeHXmHxvW3omMWQRoAjk1AiLjE=; b=o6s4NVcs8xuNBLrpYEKneyTAQUn/NkO4eU2cB3hYa3UDTdrODvbU/h18ZAn6j5WuVZ cuSXa8KKCYXnVEeLZw3q/DNLHP1TZ2qWXRY/Bm8+ObwqeyyzJ5rapSYRg0cYAlVsKlGP sX1gzbhjMAUTWOSGdKN3ax8lF+kIapmZI8InEyPP9JOXw7CU0VykcqM7YmT9wH8dxWJP geYG+q56wh/cUd38OC2g1G9ivr++7793WuXorLfXups8qVlW7uB1lUdNbSY5ln0Fu+My fvYq9KxtD1kgmtHvD3InArhh2UVGyUM0j4EEjYx6dKemOB0P7fL1PSuYiDKrnIGA3KG/ Skng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LD13OYVz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a1709065a8f00b0099bcfa13607si66174ejq.586.2023.08.03.09.50.33; Thu, 03 Aug 2023 09:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LD13OYVz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236914AbjHCPOt (ORCPT + 99 others); Thu, 3 Aug 2023 11:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236992AbjHCPOj (ORCPT ); Thu, 3 Aug 2023 11:14:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AAED30EA; Thu, 3 Aug 2023 08:14:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C97E61DFC; Thu, 3 Aug 2023 15:14:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03825C433C7; Thu, 3 Aug 2023 15:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691075652; bh=AIs633hQWW4YEm39CMxIYiNnMQEracm5j/SVV+gbkn0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LD13OYVzMeShG/qrZj8H0iyxP/cq5VhuaNq3iy65WB+6+aAKsR4kHaF6fOj9UhVLi QKneaR05jm41eefi3SY09QfFaQacxVFna1ugxw5lNNMi1Z22esoN/u4vnYx/OuEket mB/H7rODqdwLr3Hld3WeK8eBc8VxVuqxdbdx5JIdrp8wFBUCgfxiY4GBpeOjiiFFvc Frd1M34a2Owgh8DC1PZP2B4AZeaSCFl404SXoLZE0Lomv8VpycqmTrEk0rw2DJW8Nu ZyPN3HA8RHsYf5FZ13B6AIZSwggEYopMiXBvODopIzL08s2vdPZOalPJCO33572QjJ GbSK8Ln+kWlmQ== Date: Thu, 3 Aug 2023 08:17:14 -0700 From: Bjorn Andersson To: Maximilian Luz Cc: Kees Cook , Andy Gross , Konrad Dybcio , Ard Biesheuvel , Ilias Apalodimas , Srinivas Kandagatla , Sudeep Holla , Johan Hovold , Steev Klimaszewski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/3] lib/ucs2_string: Add UCS-2 strscpy function Message-ID: References: <20230730161906.606163-1-luzmaximilian@gmail.com> <20230730161906.606163-2-luzmaximilian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230730161906.606163-2-luzmaximilian@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Sun, Jul 30, 2023 at 06:19:02PM +0200, Maximilian Luz wrote: > Add a ucs2_strscpy() function for UCS-2 strings. The behavior is > equivalent to the standard strscpy() function, just for 16-bit character > UCS-2 strings. > > Signed-off-by: Maximilian Luz Reviewed-by: Bjorn Andersson Regards, Bjorn