Files
systemd/src/shared
Yu Watanabe 64fc712fe7 user-util,user-record-nss: initialize buffer before calling getpwnam_r() and friends
The buffer will be used by a library outside of our code base,
and may not be initialized even on success. Let's initialize
them for safety.

Hopefully fixes the following fuzzer warning:
```
==2039==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7f9ad8be3ae6 in _nss_files_getsgnam_r (/lib/x86_64-linux-gnu/libnss_files.so.2+0x8ae6) (BuildId: 013bf05b4846ebbdbebdb05585acc9726c2fabce)
    #1 0x7f9ad93e5902 in getsgnam_r (/lib/x86_64-linux-gnu/libc.so.6+0x126902) (BuildId: 0323ab4806bee6f846d9ad4bccfc29afdca49a58)
    #2 0x7f9ad9b98153 in nss_sgrp_for_group /work/build/../../src/systemd/src/shared/user-record-nss.c:357:21
    #3 0x7f9ad9b98926 in nss_group_record_by_gid /work/build/../../src/systemd/src/shared/user-record-nss.c:431:21
    #4 0x7f9ad9bcebd7 in groupdb_by_gid_fallbacks /work/build/../../src/systemd/src/shared/userdb.c:1372:29

  Uninitialized value was created by a heap allocation
    #0 0x556fd5294302 in malloc /src/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:1021:3
    #1 0x7f9ad9b9811d in nss_sgrp_for_group /work/build/../../src/systemd/src/shared/user-record-nss.c:353:23
    #2 0x7f9ad9b98926 in nss_group_record_by_gid /work/build/../../src/systemd/src/shared/user-record-nss.c:431:21
    #3 0x7f9ad9bcebd7 in groupdb_by_gid_fallbacks /work/build/../../src/systemd/src/shared/userdb.c:1372:29
```
2025-05-09 12:10:28 +09:00
..
2025-05-07 22:04:46 +09:00
2025-03-05 10:50:36 +01:00
2025-03-05 10:50:36 +01:00
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
…
…
2025-05-01 14:02:17 +02:00
2025-05-01 14:02:17 +02:00
2025-04-24 10:15:19 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
…
…
…
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-03-01 00:33:32 +09:00
2025-05-07 22:04:46 +09:00
…
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
…
2025-03-19 11:41:12 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-05 21:34:31 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
…
…
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-07 16:52:04 +09:00
2025-04-30 09:30:51 +02:00
2025-04-24 10:15:19 +09:00
2025-03-19 11:41:25 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-24 10:15:19 +09:00
2025-04-24 10:15:19 +09:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-05-07 22:04:46 +09:00
2025-04-30 09:30:51 +02:00
2025-05-07 22:04:46 +09:00
2025-05-07 22:04:46 +09:00
…
2025-05-07 22:04:46 +09:00
2025-04-18 14:19:15 +02:00
…