summaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorAndreas Hindborg <a.hindborg@kernel.org>2025-02-27 17:38:08 +0300
committerMiguel Ojeda <ojeda@kernel.org>2025-03-20 23:44:47 +0300
commit50a5ff0a95a54d5a710f1f2547ecf8af12b6b83a (patch)
tree7c3a63e5beeebba9dc0a2842e68cdae2f7761caf /lib/test_fortify/write_overflow-strncpy.c
parent3eff946dfec732ca9e8585bd44f93acc12646d21 (diff)
downloadlinux-50a5ff0a95a54d5a710f1f2547ecf8af12b6b83a.tar.xz
rust: str: implement `Index` for `BStr`
The `Index` implementation on `BStr` was lost when we switched `BStr` from a type alias of `[u8]` to a newtype. Add back `Index` by implementing `Index` for `BStr` when `Index` would be implemented for `[u8]`. Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Tested-by: Daniel Almeida <daniel.almeida@collabora.com> Reviewed-by: Fiona Behrens <me@kloenk.dev> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Tested-by: Daniel Gomez <da.gomez@samsung.com> Link: https://lore.kernel.org/r/20250227-module-params-v3-v8-2-ceeee85d9347@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions