mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
nodelist: Use safe string functions in describe.c
Rewrite format_node_description() and router_get_verbose_nickname() to use strlcpy() and strlcat(). The previous implementation used memcpy() and pointer arithmetic, which was error-prone. Closes ticket 31545. This is CID 1452819.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
o Code simplification and refactoring:
|
||||
- Rewrite format_node_description() and router_get_verbose_nickname() to
|
||||
use strlcpy() and strlcat(). The previous implementation used memcpy()
|
||||
and pointer arithmetic, which was error-prone.
|
||||
Closes ticket 31545. This is CID 1452819.
|
||||
Reference in New Issue
Block a user