On Wed, 2020-11-18 at 07:18 +0100, László Böszörményi (GCS) wrote: > Control: tags -1 +moreinfo > > On Thu, Nov 12, 2020 at 9:45 PM Adrian Bunk <[email protected]> wrote: > > https://github.com/zeromq/libzmq/releases/tag/v4.3.3 > > > > Note for packagers: an internal reimplementation of strlcpy is now included, > > for wider platform compatibility. > > libbsd can be used and is enabled by default if available instead of the > > internal implementation, for better security maintenance in distros. > Please note why strlcpy() is missing from glibc [1] in the first > place and "were rejected for inclusion in the POSIX.1-2008 standard". > It also contains: "note that "gcc -D_FORTIFY_SOURCE" can catch many of > the errors that strlcpy() and strlcat() were designed to catch". > Adding a new runtime library dependency for a function that was > otherwise rejected from the POSIX standard makes me curious. > Luca, what's your point of view? Is it really worth it to have a > libbsd dependency over the ZeroMQ3 own function implementation and > when the compiler (due to -D_FORTIFY_SOURCE) itself should catch most > possible problems? > > Thanks, > Laszlo/GCS > [1] https://lwn.net/Articles/507319/
Yes, it's better to add the dependency - the internal implementation is a fallback for compat, and will get little to no security scrutiny. It was copied from somewhere, and I doubt it will be kept in sync. That's why I added that note to the changelog. -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part

