Skip to content

libnvme: test that registry attribute values round-trip verbatim#3468

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
martin-belanger:test_special_chars
Jun 22, 2026
Merged

libnvme: test that registry attribute values round-trip verbatim#3468
igaw merged 1 commit into
linux-nvme:masterfrom
martin-belanger:test_special_chars

Conversation

@martin-belanger

Copy link
Copy Markdown

Attribute values are free-form -- only device and attribute names are validated, never the value. Add a test that stores a value containing spaces, double quotes, an apostrophe and punctuation, then confirms it reads back byte-for-byte, so this guarantee cannot regress through accidental escaping or sanitization of the value.

Attribute values are free-form -- only device and attribute names are
validated, never the value. Add a test that stores a value containing
spaces, double quotes, an apostrophe and punctuation, then confirms it
reads back byte-for-byte, so this guarantee cannot regress through
accidental escaping or sanitization of the value.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
@igaw igaw merged commit 83edfbf into linux-nvme:master Jun 22, 2026
29 of 30 checks passed
@igaw

igaw commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@martin-belanger martin-belanger deleted the test_special_chars branch June 22, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants