8716d1 sd-bus: make strict asan shut up

1 file Authored by Lennart Poettering 4 years ago, Committed by Packit Service 4 years ago,
    sd-bus: make strict asan shut up
    
    asan doesn't like it if we use strndup() (i.e. a string function) on a
    non-NULL terminated buffer (i.e. something that isn't really a string).
    
    Let's hence use memdup_suffix0() instead of strndup(), which is more
    appropriate for binary data that is to become a string.
    
    Fixes: #10385
    (cherry picked from commit ac0a94f7438b49a0890d9806db1fa211a5bca10a)
    
    Resolves: #1761519
    
    patch_name: 0222-sd-bus-make-strict-asan-shut-up.patch
    present_in_specfile: true
    location_in_specfile: 222
    squash_commits: true