diff options
author | login (__tcoin) (tilde.my.to) | 2021-01-31 16:53:36 +0000 |
---|---|---|
committer | login (__tcoin) (tilde.my.to) | 2021-01-31 16:53:36 +0000 |
commit | 982027f93eb8ceaccf2d6117b40a49246ecdef41 (patch) | |
tree | 113e170eab358f3800ee23194892ff33ef556319 | |
parent | 77973561190c25f5fa8dff8ab71d3f2829489dbf (diff) |
Fixed buffer overflow because of hardcoded lengths
In user_has_initialised(..), the path lengths were hardcoded. This has now been changed to being calculated via sizeof(). In get_file_value and add_file_value, strlen() was used. This has also been replaced with sizeof().
-rw-r--r-- | pcoin.cpp | 0 | ||||
-rw-r--r-- | tcoin.cpp | 0 |
2 files changed, 0 insertions, 0 deletions
diff --git a/pcoin.cpp b/pcoin.cpp index 47f9abb..1a47060 100644 --- a/pcoin.cpp +++ b/pcoin.cpp diff --git a/tcoin.cpp b/tcoin.cpp index f07696f..27f206e 100644 --- a/tcoin.cpp +++ b/tcoin.cpp |