Skip to content
Commit 6a60a626 authored by Loïc Yhuel's avatar Loïc Yhuel
Browse files

Fix incorrect string termination in ConnectionMapping

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".
parent 86840e6d
Pipeline #93219 passed with stage
in 1 minute and 15 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment