heinrich5991
6247aa0c7f
Enable -Wextra
and -Wformat=2
...
Also annotate `dbg_msg`, `str_format` and `str_timestamp_ex` so that the
compiler can determine whether the format strings are correct.
Fix the compiler warnings generated by these extra warnings -- some of
them were security issues.
2017-07-27 20:38:17 +02:00
def
34c8b047ea
Oldschool C please
2017-07-22 21:20:15 +02:00
def
53565aa937
fixes
2017-07-09 14:56:57 +02:00
heinrich5991
409bc0e019
Ensure null-termination in str_escape
...
This also fixes a couple of potential buffer overflows. The affected
code is still buggy (doesn't do the right thing on potential buffer
overflow), but at least it won't result in crashes/out of bound writes
anymore.
2017-07-08 13:06:03 +02:00
def
36d5c8d608
string toggling supports escaped strings; also some code cleanup
2017-07-08 11:03:51 +02:00
def
7a83af4d1b
Fix Mac build
2017-06-02 22:10:58 +02:00
def
fe89b65368
Stupid C90
2017-06-02 20:31:37 +02:00
def
a6e144ea72
Let's not crash the client and server on dbg_assert
2017-06-02 20:12:20 +02:00
def
9b48e902f0
Prevent data race when initializing loggers
2017-06-02 18:47:26 +02:00
Dennis Felsing
63ca2f8749
Show nr of skipped log messages
2017-04-21 10:50:16 +02:00
def
d84911618a
Don't block when logging queue is full, instead ignore message
2017-04-20 21:25:20 +02:00
heinrich5991
d98abf35db
Rename WEBSOCKETS
to CONF_WEBSOCKETS
2017-03-07 13:03:37 +01:00
heinrich5991
c201d7959c
Enable -Wdeclaration-after-statement for compat with MSVC
2017-03-07 13:02:37 +01:00
heinrich5991
6302e4d7e0
Fix some style issues and a > to >=
2017-03-06 20:11:23 +01:00
Learath2
8c79f28802
Fix a crash on malformed input
2017-03-06 15:18:52 +01:00
Learath2
3c6a21ace2
dbg_assert felt more appropriate
2017-03-06 12:58:49 +01:00
Learath2
939a7f0d3f
This time actually add error checking to str_hex_decode
2017-03-06 12:33:29 +01:00
Learath2
ed5824589c
Make str_hex_decode a little more friendly
2017-03-04 23:06:07 +03:00
Learath2
b7cbaedea0
New auth system for rcon
2017-03-02 18:16:29 +03:00
heinrich5991
cd3b0ae855
Implement the confusable algorithm from Unicode more closely
...
See UTS#39 "Unicode Security Mechanisms":
http://www.unicode.org/reports/tr39/
This means that characters with accents or other things around them are
now considered the confusable with the base character.
Fixes #557 . Fixes #575 .
2016-10-30 13:45:55 +01:00
east
3b8c17d9d6
fixed VS compilation
2016-10-06 13:03:48 +02:00
heinrich5991
89b6d0c3da
Fix C89 compilation and a copy&paste mistake
2016-10-03 12:31:11 +02:00
heinrich5991
e950351346
Put the password generation into base
2016-10-01 23:04:16 +02:00
def
28f50e4440
Revert "Implement comma in search and exclude queries to separate search terms"
...
This reverts commit 3341e18d13
.
2016-08-07 00:52:00 +02:00
def
5b19be992d
C89 fix
2016-08-03 00:24:58 +02:00
def
3341e18d13
Implement comma in search and exclude queries to separate search terms
2016-08-02 22:16:02 +02:00
H-M-H
a4a841c0f9
fix timer on macOS
2016-07-10 16:07:21 +02:00
heinrich5991
d8e27027f8
Use the monotonic clock on OS X
2016-07-03 12:56:29 +02:00
def
071822d281
Use clock_gettime(CLOCK_MONOTONIC) instead of gettimeofday().
...
Seems to work fine. (The initial bugs I had with this were caused by my
system's clock being wrong)
2016-06-28 23:30:35 +02:00
H-M-H
c9e65c7931
Merge branch 'master' into sqlmasters
2016-05-03 23:07:24 +02:00
def
61e47422f6
Clean up debug messages a bit (lower case, no useless errors)
2016-05-02 21:35:32 +02:00
def
c683703df0
Fix system.c for C89
2016-05-01 19:35:21 +02:00
def
ab13a0086d
Updater: Support downloading files into new directories
2016-05-01 14:20:55 +02:00
H-M-H
88ed7391da
handle exceptions from sql properly
...
- write failed sqlinserts to a file
- improved structure
2016-02-20 15:33:35 +01:00
heinrich5991
a1923b154b
Only ignore messages on invalid UTF-8, don't kick players
2016-01-27 01:48:19 +01:00
east
5267dfa9ac
secure_rand: range [0, RAND_MAX]
2016-01-02 15:51:21 +01:00
east
f3f33904f7
secure_rand() as replacement for client source port generation
2016-01-02 15:37:44 +01:00
heinrich5991
41a9760d79
Fix a constant in the UTF-8 decoder
...
(I can't read. Constant is described in
https://encoding.spec.whatwg.org/#utf-8-decoder step 3 second case.)
2015-09-08 11:44:57 +01:00
def
96f2a380f6
Get rid of warning
2015-09-05 04:52:18 +02:00
def
7487923774
Fix Windows thread handle leak
2015-09-05 04:49:22 +02:00
east
675c6eb1e0
Demo browser column listbox added
2015-08-27 15:05:24 +02:00
def
a4a48255bc
Minor indentation fix
2015-08-26 15:44:25 +02:00
def
6c0bac7508
Remove useless comparison
2015-08-26 04:02:52 +02:00
Chairn
33c421b428
Made fs_getmtime works for window.
2015-08-22 21:29:34 +02:00
def
c033ad6828
Fix compilation on windows, needs implementation of fs_getmtime on Windows
2015-08-22 20:32:02 +02:00
def
08ac551e0e
Add fs_getmtime as preparation for sorting by timestamp of file in demo view
2015-08-22 17:57:58 +02:00
BeaR
ff3c4f22b4
Add hex value edit field for quad point color
2015-08-20 12:51:30 +02:00
def
74391e63b9
Hopefully fix moving config file on save on Windows by allowing overwrite
2015-07-28 02:12:05 +02:00
def
77c1442499
IPV6 fix by east
2015-07-12 03:08:58 +02:00
def
6d68e22cd1
Hopefully fix string fuzzying for unicode
2015-07-11 19:26:57 +02:00