diff options
author | Fredrik <fredrik@rinnestam.se> | 2019-03-19 04:34:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-19 04:34:37 +0100 |
commit | 46a6328b14fd38d77ac5da54b5418eef623947e6 (patch) | |
tree | 151fe710e16c82fea561e2ef3f9e715fd28e92a9 | |
parent | 1e5341db7fd24bdd9bddf2fece098ace0ffb54ab (diff) | |
parent | 49dd00643204107462d8d9d9b48e67d3df876777 (diff) | |
download | httpup-46a6328b14fd38d77ac5da54b5418eef623947e6.tar.gz httpup-46a6328b14fd38d77ac5da54b5418eef623947e6.tar.xz |
Merge pull request #1 from thomaspenteker/master
main.cpp: fix buffer overflow mentioned in FS#1718
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -88,7 +88,7 @@ int main(int argc, char** argv) target = htap.otherArguments()[1]; } else { char* pwd = new char[256]; - if (getcwd(pwd, 265) == NULL) { + if (getcwd(pwd, 256) == NULL) { delete pwd; pwd = new char[1024]; if (getcwd(pwd, 1024) == NULL) { |