• Loïc Yhuel's avatar
    Fix incorrect string termination in ConnectionMapping · 203b72c2
    Loïc Yhuel authored and Arjen Hiemstra's avatar Arjen Hiemstra committed
    After readlinkat, the nul character is not written at the correct index.
    When readlinkat truncates the result, the code writes after the end of the array, which
    triggers an assert in libstdc++.
    In the other cases, it leaves an uninitialized char 'u' at the end of the array, but the
    code stops at the ']' of "socket:[...]u".
    
    
    (cherry picked from commit 6a60a626)
    203b72c2