summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2021-06-19 15:26:23 +0200
committerSander Vrijders <[email protected]>2021-06-21 08:45:50 +0200
commitd063d1fdc9c20dec8c4a4b6c07bc143edbde35fc (patch)
tree40c84d993c95ee1e0414a35d6283b735850af763 /src/ipcpd
parent95ca0c60dbe88d5cfff71234dc1483406241bf26 (diff)
downloadouroboros-d063d1fdc9c20dec8c4a4b6c07bc143edbde35fc.tar.gz
ouroboros-d063d1fdc9c20dec8c4a4b6c07bc143edbde35fc.zip
ipcpd: Fix buffer overflow in flow allocator RIB.
Max value of UINT64 can be 20 characters when printed, need an extra byte for sprintf trailing '\0'. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/unicast/fa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ipcpd/unicast/fa.c b/src/ipcpd/unicast/fa.c
index bdbb9409..b3b9b42c 100644
--- a/src/ipcpd/unicast/fa.c
+++ b/src/ipcpd/unicast/fa.c
@@ -124,9 +124,9 @@ static int fa_stat_read(const char * path,
#ifdef IPCP_FLOW_STATS
struct fa_flow * flow;
int fd;
- char r_addrstr[20];
- char s_eidstr[20];
- char r_eidstr[20];
+ char r_addrstr[21];
+ char s_eidstr[21];
+ char r_eidstr[21];
char tmstr[20];
char castr[1024];
struct tm * tm;