Skip to content
Commit b55e85d4 authored by Daniel Gustafsson's avatar Daniel Gustafsson
Browse files

gskit: make sure to terminate version string



In case a very small buffer was passed to the version function, it could
result in the buffer not being NULL-terminated since strncpy() doesn't
guarantee a terminator on an overflowed buffer. Rather than adding code
to terminate (and handle zero-sized buffers), move to using snprintf()
instead like all the other vtls backends.

Closes #3105
Reviewed-by: default avatarDaniel Stenberg <daniel@haxx.se>
Reviewed-by: default avatarViktor Szakats <commit@vszakats.net>
parent c1af9b76
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