Danny Al-Gaaf
d36e535c65
unit_test.c: fix printf, remove unused parameter
...
Fix for:
[test/unit_test.c:827]: (warning) printf format string requires 0
parameters but 1 is given.
[test/unit_test.c:833]: (warning) printf format string requires 0
parameters but 1 is given.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:25:05 +02:00
Danny Al-Gaaf
549631d9b1
CivetServer.cpp: check array limit before access array
...
Fix for:
[src/CivetServer.cpp:153]: (style) Array index 'i' is used before
limits check.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:25:01 +02:00
Danny Al-Gaaf
0a5d4d2ffc
civetweb.c: check array limit before access array
...
Fix for:
[src/civetweb.c:2338]: (style) Array index 'i' is used before limits check.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:24:57 +02:00
Danny Al-Gaaf
a18401f0eb
civetweb.c: fix realloc handling
...
Fix handling of realloc. If realloc() fails it returns NULL, assigning
the return value of realloc() directly to the pointer without checking
for the result will lead to a memory leak in error case.
Use a temporary pointer to hold the result of realloc().
Fix for:
[src/civetweb.c:409]: (error) Common realloc mistake: 'data' nulled but
not freed upon failure
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:24:52 +02:00
Danny Al-Gaaf
ae0c43a0e3
chat.c: fix format argument type
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:23:44 +02:00
Danny Al-Gaaf
92fcd83da3
main.c: fix -Wincompatible-pointer-types
...
Fix warning: passing 'char **' to parameter of type 'const char **' discards
qualifiers in nested pointer types [-Wincompatible-pointer-types]
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:23:39 +02:00
Danny Al-Gaaf
69f2cf2481
.gitignore: add ctags file
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de >
2014-04-24 11:23:27 +02:00
bel
8fbf4e94ce
Add md5 test to unit test
2014-04-19 22:02:03 +02:00
bel
ca564eab93
Move windows console creation to a function
2014-04-18 23:09:02 +02:00
bel
de735c5544
Rewrite DEBUG_TRACE
2014-04-18 22:47:06 +02:00
bel
44ae1530bd
handle exit while the password dialog is open, rewrite password suggestion
2014-04-16 17:55:34 +02:00
bel
8171e1bb03
Change password dialog for Windows
2014-04-16 15:01:03 +02:00
bel
0eee4c0bec
Add the inl files to the Visual Studio project, so they can be conveniently opened from the Visual Studio IDE
2014-04-16 13:31:59 +02:00
bel
3a9aa9b80e
Dialog to add and delete users and reset user passwords for Windows
2014-04-13 22:17:44 +02:00
bel
b5da6dbcaa
Lua error handler for all errors
2014-04-11 22:08:24 +02:00
bel
93065f0278
Improve User Manual
2014-04-11 21:39:14 +02:00
bel
040946da87
Improve User Manual
2014-04-11 21:29:38 +02:00
bel
9ecfcb4a1e
Improve User Manual
2014-04-11 20:50:27 +02:00
bel
6af6495617
Improve User Manual
2014-04-10 20:48:14 +02:00
bel
65ace990b7
CGI error handler should show the status code
2014-04-09 21:27:21 +02:00
bel
266bb6f8a9
Lua error handler should show the status code
2014-04-09 21:25:34 +02:00
bel
5173d3a2f5
Rewrite introduction section of User_Manual
2014-04-08 20:36:21 +02:00
bel
46683973a7
Correct headline level
2014-04-07 21:04:21 +02:00
bel
99c9886bca
Improve UserManual
2014-04-06 22:59:57 +02:00
bel
9576339a75
Implement user defined error pages
2014-04-06 22:34:44 +02:00
bel
b047aa0643
prepare for user defined error pages
2014-04-05 22:15:27 +02:00
bel
f61d33f49c
Terminate strings from sscanf
2014-04-04 21:55:01 +02:00
bel
21e3a69701
Set maximum string lengths for sscanf
2014-04-04 21:40:49 +02:00
bel
70bb07b3e4
fix seems OK - remove comment
2014-04-03 19:29:40 +02:00
bel2125
ec8f79757b
Merge pull request #19 from Grahack/patch-2
...
Fix typos in the Readme
2014-04-03 19:25:04 +02:00
Grahack
9c2f4ed954
Fix typos in the Readme
...
«teh official repositiory» -> «the official repository»
«maintanence» -> «maintenance»
2014-04-03 12:45:50 +02:00
bel
ff72078b45
Test fix for issue #18 from celeron55
2014-04-02 20:11:48 +02:00
bel
61fa52e703
Reset socket handle variable after closesocket
2014-04-02 19:55:53 +02:00
bel
07ec21edbb
fix signed/unsigned mismatch warning
2014-03-29 22:35:28 +01:00
bel
0bbecb2a0c
Replace strncpy by mg_strlcpy
2014-03-28 21:49:37 +01:00
bel
ff23e535fb
Free mutex and condition variables if mg_start fails
2014-03-28 21:38:14 +01:00
bel
3fbfe0be8c
Must check ah->nonce before dereferencing it
2014-03-28 21:31:30 +01:00
bel
2a4b819ef9
Use C memory allocation instead of C++, so std::bad_alloc exception handling must not be done
2014-03-23 20:45:27 +01:00
bel
c4f1f043bb
Issue #11 : Method to get POST request parameters via C++ interface
2014-03-22 23:03:15 +01:00
bel
c9f266e3a7
Issue #11 : Method to get POST request parameters via C++ interface
2014-03-22 23:02:07 +01:00
bel
ca5967bbdf
SSL unit tests
2014-03-22 00:51:17 +01:00
bel
0058054198
Fix issue #12 : Handle post requests with Content-length 0 bytes
2014-03-22 00:04:09 +01:00
bel
8683723244
Fix issue #12 : Handle post requests with Content-length 0 bytes
2014-03-21 21:41:16 +01:00
bel
34f434b07b
Get unit-tests running again (90% done, some tests commented out for the moment)
2014-03-20 23:02:56 +01:00
bel
5ca68ecbfa
Unit test for Windows
2014-03-20 21:12:44 +01:00
bel
c002a6f1a0
Re-Add Unit tests for Linux
2014-03-20 21:09:16 +01:00
bel2125
abbb8b5d83
Merge pull request #17 from jmc-/master
...
Re-add unit tests for Linux
2014-03-20 20:05:53 +01:00
jmc-
89c1672469
Added a new Makefile rule called 'unit_test', which builds a stand-alone executable called 'civetweb_test' that runs unit tests.
...
Also fixed up the aging test/unit_test.c file so that it compiles and runs.
Build unit tests with 'make unit_test' or 'make unit_test WITH_LUA=1'.
2014-03-19 16:07:37 -07:00
bel2125
8ae5f1a489
Merge pull request #16 from cholcombe973/master
...
Changing int to int64_t fixes a 2GB upload limit bug for me
2014-03-19 23:24:47 +01:00
jmc-
17d2d1a831
Merge branch 'master' into unit_test
2014-03-19 15:24:14 -07:00