aboutsummaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-19 10:31:55 -0500
committerFurkan Sahin <furkan-dev@proton.me>2019-01-19 10:31:55 -0500
commitd305405d0bb52350206062d1f746b2d5ccf2f9cb (patch)
treea7264e6676381ec9cc5dca6725d88e3257d9d0db /CONTRIBUTING.md
parent9df6bbf7b8d6114905e802f44efd340d1e93fdc3 (diff)
Fix backup methods in get_socketpath for IPC client
Previously, the success of `getline` was tested by checking if the buffer it allocates is nonempty and has a nonzero first byte. As `getline` does not explicitly zero out its memory buffer, this may fail (e.g., with AddressSanitizer). Instead, we check that at least one character was returned on standard output. Also, trailing newlines (if present) are now removed.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions