mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
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.
5 lines
296 B
Text
5 lines
296 B
Text
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.
|