Skip to content

Pull in and use strlcpy and strlcat

Jim Newsome requested to merge jnewsome/torsocks:strlcpy into main

I was getting some compiler warnings about incorrect bounds checks for strncpy. If I understand correctly this could have led to creating some unterminated strings (e.g. for socks username and password).

This cargo-cults a bit what it appears is done in tor - ensure strlcpy and strlcat are available and use those instead.

Fixes some of #40017

Edited by Jim Newsome

Merge request reports

Loading