ddnet/src/engine/server
bors[bot] d80d1df0db
Merge #3297 #3305 #3307
3297: Fix memleak in CServer on instant shutdown r=Jupeyy a=def-

```
Direct leak of 566869 byte(s) in 1 object(s) allocated from:
    #0 0x4f28e3 in __interceptor_malloc (/home/teeworlds/servers/DDNet-Server-asan+0x4f28e3)
    #1 0x55b3c9 in CServer::LoadMap(char const*) /home/teeworlds/src/master/src/engine/server/server.cpp:2312:49
    #2 0x55bfdd in CServer::Run() /home/teeworlds/src/master/src/engine/server/server.cpp:2351:6
    #3 0x56add2 in main /home/teeworlds/src/master/src/engine/server/server.cpp:3553:21
    #4 0x7f54401cd09a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
```

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [x] Considered possible null pointers and out of bounds array indexing
- [x] Changed no physics that affect existing maps
- [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


3305: DemoRecorder: Only remove existing filenames r=Jupeyy a=def-

As noticed by Jupstar

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [x] Considered possible null pointers and out of bounds array indexing
- [x] Changed no physics that affect existing maps
- [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


3307: Don't crash with debug mode in demo r=Jupeyy a=def-

Since character doesn't exist then. Reported by murpi

Originally introduced in https://github.com/ddnet/ddnet/pull/2578

<!-- What is the motivation for the changes of this pull request -->

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: def <dennis@felsin9.de>
2020-11-13 10:31:20 +00:00
..
databases Fix updating points on SQLite3 backend 2020-11-11 20:27:22 +01:00
antibot.cpp Run clang-format 2020-09-26 21:50:15 +02:00
antibot.h Run clang-format 2020-09-26 21:50:15 +02:00
authmanager.cpp Fix variable names manually 2020-11-02 22:40:40 +01:00
authmanager.h Run clang-format 2020-09-26 21:50:15 +02:00
name_ban.cpp Make name more descriptive 2019-03-11 14:48:45 +01:00
name_ban.h Run clang-format 2020-09-26 21:50:15 +02:00
register.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
register.h Run clang-format 2020-09-26 21:50:15 +02:00
server.cpp Merge #3297 #3305 #3307 2020-11-13 10:31:20 +00:00
server.h Merge #3297 #3305 #3307 2020-11-13 10:31:20 +00:00
sql_string_helpers.cpp Fix some variable name's style 2020-11-08 17:15:48 +01:00
sql_string_helpers.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
upnp.cpp Run clang-format 2020-09-26 21:50:15 +02:00
upnp.h Run clang-format 2020-09-26 21:50:15 +02:00