Files
systemd/test/fuzz/fuzz-user-record/edge-unicode-strings.json
Frantisek Sumsal be0db50cad fuzz: add a fuzzer for user records
Add a simple fuzzer that verifies our machinery for parsing user records
from JSON works as intended.

The initial corpus was created with the help of Claude, so we have a
bunch of valid user records with as much fields as possible for the
initial corpus.
2026-03-06 19:03:14 +01:00

22 lines
656 B
JSON

{
"userName": "unicodeuser",
"realName": "Ünïcödé Üsér 日本語 中文 العربية",
"uid": 3003,
"gid": 3003,
"homeDirectory": "/home/unicodeuser",
"shell": "/bin/bash",
"disposition": "regular",
"emailAddress": "unicode@例え.jp",
"location": "東京, 日本 🌸",
"environment": [
"GREETING=Привет мир",
"HELLO=你好世界"
],
"preferredLanguage": "ja_JP.UTF-8",
"additionalLanguages": ["zh_CN.UTF-8", "ar_SA.UTF-8", "ru_RU.UTF-8"],
"timeZone": "Asia/Tokyo",
"privileged": {
"passwordHint": "お気に入りの食べ物は何ですか?"
}
}