lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72=CHTBvWq2wb79kbk8U=f5XdnO5bvqWg96Bbj5=X-E+gQ@mail.gmail.com>
Date: Fri, 22 Aug 2025 23:34:52 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: samidanielpersonal@...il.com, Tamir Duberstein <tamird@...il.com>
Cc: ojeda@...nel.org, alex.gaynor@...il.com, rust-for-linux@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rust: Improve CStr UTF-8 conversion methods

On Fri, Aug 22, 2025 at 10:57 PM Sami Daniel
<samidanielpersonal@...il.com> wrote:
>
> Add safe conversion from CStr to &str with UTF-8 validation.
>
> - Returns Result<&str, Utf8Error> for safe conversion
> - Complements existing str methods on str.rs

Is there a use case in mind?

Please also note that we are trying to move to the `core` `CStr`, so
is this needed if that succeeds?

Cc'ing Tamir.

Thanks for the patch!

Cheers,
Miguel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ