summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik <fredrik@rinnestam.se>2019-03-19 04:34:37 +0100
committerGitHub <noreply@github.com>2019-03-19 04:34:37 +0100
commit46a6328b14fd38d77ac5da54b5418eef623947e6 (patch)
tree151fe710e16c82fea561e2ef3f9e715fd28e92a9
parent1e5341db7fd24bdd9bddf2fece098ace0ffb54ab (diff)
parent49dd00643204107462d8d9d9b48e67d3df876777 (diff)
downloadhttpup-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 626fc84..f788df8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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) {

Generated by cgit