ddnet/src/engine/client
bors[bot] b475d4ffc5
Merge #3987
3987: Fix client use-after-free reported by mmmds r=def- a=ChillerDragon

Fix https://github.com/teeworlds/teeworlds/issues/2645

The `Sv_ReadyToEnter` net message is only valid while we're still
loading stuff, it is used to signal that we can send the `ENTERGAME`
system message. Simply ignoring the server message while we're in the
wrong part of the state machine works.

(cherry picked from commit a97f8a22de)


## Checklist

- [ ] 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: heinrich5991 <heinrich5991@gmail.com>
2021-08-03 14:40:33 +00:00
..
backend Force alpha values from glReadPixel to 255 2021-06-12 16:58:45 +02:00
backend_sdl.cpp Merge #3804 2021-05-22 09:56:09 +00:00
backend_sdl.h Fix modern GL graphic settings for the multi backend 2021-05-02 23:21:00 +02:00
blocklist_driver.cpp Add Intel as vendor to the block list on windows 2021-05-06 12:23:40 +02:00
blocklist_driver.h Add Intel as vendor to the block list on windows 2021-05-06 12:23:40 +02:00
client.cpp Merge #3987 2021-08-03 14:40:33 +00:00
client.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
demoedit.cpp Run clang-format 2020-09-26 21:50:15 +02:00
demoedit.h Manual preparation for cleaner clang-format 2020-09-26 21:41:01 +02:00
discord.cpp Allow to dynamically load the Discord SDK on Linux 2021-02-01 12:20:11 +01:00
friends.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
friends.h Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
ghost.cpp Add color for non chat(binds, ghost, client, demo) 2021-03-08 18:39:25 +01:00
ghost.h Move ghost code to client 2020-10-14 17:08:58 +02:00
graphics_defines.h Remove GL includes from headers 2021-05-01 23:56:30 +02:00
graphics_threaded.cpp Merge #3804 2021-05-22 09:56:09 +00:00
graphics_threaded.h Merge #3804 2021-05-22 09:56:09 +00:00
http.cpp Add a new failure log level to the HTTP module 2021-06-15 00:12:06 +02:00
http.h Add a new failure log level to the HTTP module 2021-06-15 00:12:06 +02:00
input.cpp Reset relative mouse motion on toggle 2021-06-25 14:52:26 +02:00
input.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
keynames.h Enable most clang-tidy misc-* checks 2020-11-05 12:03:14 +01:00
notifications.cpp OSX -> macOS 2021-02-12 13:41:41 +01:00
notifications.h Libnotify support for linux client (#2099) 2020-04-14 17:53:53 +02:00
serverbrowser.cpp Merge master into pr_use_cpp 2021-07-04 16:09:20 +02:00
serverbrowser.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
serverbrowser_http.cpp uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
serverbrowser_http.h Save previously determined best serverlist 2021-05-14 01:01:09 +02:00
serverbrowser_ping_cache.cpp Add forgotten commit data from #3772 2021-05-27 21:48:04 +02:00
serverbrowser_ping_cache.h Add serverbrowser ping cache 2021-05-14 01:00:41 +02:00
sound.cpp uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
sound.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
sqlite.cpp Add forgotten commit data from #3772 2021-05-27 21:48:04 +02:00
steam.cpp Support ipv6 2021-05-05 17:32:37 +02:00
text.cpp uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
updater.cpp Fix str comp parameter in updater 2021-06-14 07:47:54 +02:00
updater.h Add Thread Safety Analysis 2020-12-23 18:13:21 +01:00
video.cpp uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
video.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00