mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
bugfix: address that strcat vulnerability in circuit.c
svn:r1273
This commit is contained in:
+1
-1
@@ -341,7 +341,7 @@ list_running_servers(char **nicknames_out)
|
||||
for (i = 0; i<n; ++i) {
|
||||
if (i)
|
||||
strcat(cp, " ");
|
||||
strcat(cp, nickname_lst[i]);
|
||||
strcat(cp, nickname_lst[i]); /* can't overflow */
|
||||
while (*cp)
|
||||
++cp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user