diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2021-06-19 15:26:23 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2021-06-21 08:45:50 +0200 |
commit | d063d1fdc9c20dec8c4a4b6c07bc143edbde35fc (patch) | |
tree | 40c84d993c95ee1e0414a35d6283b735850af763 /src/ipcpd/unicast/fa.c | |
parent | 95ca0c60dbe88d5cfff71234dc1483406241bf26 (diff) | |
download | ouroboros-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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/fa.c')
-rw-r--r-- | src/ipcpd/unicast/fa.c | 6 |
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; |