-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text overlap in bottom right #6
Comments
fixed by 0f72fd1 |
Learath2
pushed a commit
to Learath2/teeworlds
that referenced
this issue
Oct 14, 2014
Colors of messages and laser
axblk
referenced
this issue
in axblk/teeworlds
Jan 10, 2016
nheir
added a commit
to nheir/teeworlds
that referenced
this issue
Jan 13, 2016
Dummy bots Save tiles index Working Bots but server may be instable The server works assuming that everything will be alright. Basically, kick a bot leads to an undefined behaviour. Don't count bots in vote ReAdd smarter flag behaviour Rejoin when a player leave a bot slot Forbid kick/move on bots Fix client drop on bots Fix (?) spam fire Fix (?) bots glitch Check bot number each tick Add Custom skin color 0 Latency Add bot skin Bunch of upgrade and downgrade Better aim Worst flag handling Some debug rendering Add delaunay triangle (need fix) New graph engine Bunch of thing, factoring, better path Bunch of issue, cpu, lag… Reduce useless code Remove wild memory allocation trying to reduce performance issue... Looking for perf ! Basically, aim costs a constant time and add 20-30% cpu (corei7). Pathfinding and update edge take from 16 to 37% cpu, that is a way to much. In fact, update edge doesnt costs a lot, but looking for the farest point in sight is too much to handle each tick. So, either do not check it each tick, or find a way to reduce the cost of this operation, with precomputation for example. Add segments #1 Add segments #2 Add segments teeworlds#3 + free Add segments teeworlds#4 test with in sight Add segments teeworlds#5 Add segments teeworlds#6 Disable bots when there is no player connected Move segments to collision.{cpp,h} Remove intersect segment from botengine Small improvement Fix wrong return value of IntersectSegment Reduce vector_base<> operator- use Remove unused CBot members Add item pickup Revert Segment use for collision FastIntersectLine 30x faster from callgrind trace Add verbosity Reduce amount of variables Use FastIntersectLine ni bot(engine) Try some genetics Remove unused variables fix no hook Remove comparison between vectors Fix laser aim Add timeout remove some useless comments
axblk
referenced
this issue
in axblk/teeworlds
Jan 15, 2016
Bumble
pushed a commit
to Bumble/teeworlds
that referenced
this issue
Mar 1, 2016
gwilherm
added a commit
to gwilherm/teeworlds
that referenced
this issue
Jun 7, 2018
nheir
added a commit
to nheir/teeworlds
that referenced
this issue
Oct 27, 2018
ChillerDragon
added a commit
to ChillerDragon/teeworlds
that referenced
this issue
Jan 16, 2024
Fixes a bug caught by clang tooling. Running for example ``str_comp_filenames("historic_maps/cb_cp/ChillBlock5", "historic_maps/cb_cp/ChillBlock5");`` causes the following error: ``` ================================================================= ==108107==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe71e6aa00 at pc 0x55be3668c69c bp 0x7ffe71e6a780 sp 0x7ffe71e6a778 READ of size 1 at 0x7ffe71e6aa00 thread T0 #0 0x55be3668c69b in str_comp_filenames /home/chiller/Desktop/git/teeworlds/src/base/system.c:2369:14 #1 0x55be363a0f2f in CServer::CMapListEntry::operator<(CServer::CMapListEntry const&) const /home/chiller/Desktop/git/teeworlds/src/engine/server/server.h:184:61 teeworlds#2 0x55be3639f4e7 in plain_range_sorted<CServer::CMapListEntry> partition_binary<plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry>(plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry) /home/chiller/Desktop/git/teeworlds/src/base/tl/algorithm.h:51:25 teeworlds#3 0x55be3639a9f1 in sorted_array<CServer::CMapListEntry, allocator_default<CServer::CMapListEntry> >::add(CServer::CMapListEntry const&) /home/chiller/Desktop/git/teeworlds/src/base/tl/sorted_array.h:23:31 teeworlds#4 0x55be3637d7d1 in CServer::MapListEntryCallback(char const*, int, int, void*) /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1504:17 teeworlds#5 0x55be36682aba in fs_listdir /home/chiller/Desktop/git/teeworlds/src/base/system.c:1583:6 teeworlds#6 0x55be36649f3f in CStorage::ListDirectory(int, char const*, int (*)(char const*, int, int, void*), void*) /home/chiller/Desktop/git/teeworlds/src/engine/shared/storage.cpp:299:5 teeworlds#7 0x55be3637d15a in CServer::MapListEntryCallback(char const*, int, int, void*) /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1492:22 teeworlds#8 0x55be36682aba in fs_listdir /home/chiller/Desktop/git/teeworlds/src/base/system.c:1583:6 teeworlds#9 0x55be36649f3f in CStorage::ListDirectory(int, char const*, int (*)(char const*, int, int, void*), void*) /home/chiller/Desktop/git/teeworlds/src/engine/shared/storage.cpp:299:5 teeworlds#10 0x55be3637d15a in CServer::MapListEntryCallback(char const*, int, int, void*) /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1492:22 teeworlds#11 0x55be36682aba in fs_listdir /home/chiller/Desktop/git/teeworlds/src/base/system.c:1583:6 teeworlds#12 0x55be36649f3f in CStorage::ListDirectory(int, char const*, int (*)(char const*, int, int, void*), void*) /home/chiller/Desktop/git/teeworlds/src/engine/shared/storage.cpp:299:5 teeworlds#13 0x55be3637c031 in CServer::InitMapList() /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1523:14 teeworlds#14 0x55be36373bb0 in CServer::Run() /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1281:2 teeworlds#15 0x55be3638e83b in main /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1909:21 teeworlds#16 0x7fec6e2461c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 teeworlds#17 0x7fec6e246284 in __libc_start_main csu/../csu/libc-start.c:360:3 teeworlds#18 0x55be36279aa0 in _start (/home/chiller/Desktop/git/teeworlds/build/teeworlds_srv+0x1dfaa0) (BuildId: 9b8cae111ee49e0bd87b22dbd9f66cf8ddfb1d52) Address 0x7ffe71e6aa00 is located in stack of thread T0 at offset 64 in frame #0 0x55be3639f0ff in plain_range_sorted<CServer::CMapListEntry> partition_binary<plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry>(plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry) /home/chiller/Desktop/git/teeworlds/src/base/tl/algorithm.h:36 This frame has 5 object(s): [32, 64) 'value.byval' <== Memory access at offset 64 overflows this variable [96, 112) 'retval' [128, 144) 'range' [160, 176) 'ref.tmp' (line 52) [192, 208) 'ref.tmp20' (line 54) HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow /home/chiller/Desktop/git/teeworlds/src/base/system.c:2369:14 in str_comp_filenames Shadow bytes around the buggy address: 0x10004e3c54f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5530: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 =>0x10004e3c5540:[f2]f2 f2 f2 00 00 f2 f2 00 00 f2 f2 f8 f8 f2 f2 0x10004e3c5550: f8 f8 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5580: 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00 f2 f2 0x10004e3c5590: 00 00 f2 f2 00 00 00 00 f3 f3 f3 f3 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==108107==ABORTING ```
ChillerDragon
added a commit
to ChillerDragon/teeworlds
that referenced
this issue
Feb 23, 2024
Fixes a bug caught by clang tooling. Running for example ``str_comp_filenames("historic_maps/cb_cp/ChillBlock5", "historic_maps/cb_cp/ChillBlock5");`` causes the following error: ``` ================================================================= ==108107==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe71e6aa00 at pc 0x55be3668c69c bp 0x7ffe71e6a780 sp 0x7ffe71e6a778 READ of size 1 at 0x7ffe71e6aa00 thread T0 #0 0x55be3668c69b in str_comp_filenames /home/chiller/Desktop/git/teeworlds/src/base/system.c:2369:14 #1 0x55be363a0f2f in CServer::CMapListEntry::operator<(CServer::CMapListEntry const&) const /home/chiller/Desktop/git/teeworlds/src/engine/server/server.h:184:61 teeworlds#2 0x55be3639f4e7 in plain_range_sorted<CServer::CMapListEntry> partition_binary<plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry>(plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry) /home/chiller/Desktop/git/teeworlds/src/base/tl/algorithm.h:51:25 teeworlds#3 0x55be3639a9f1 in sorted_array<CServer::CMapListEntry, allocator_default<CServer::CMapListEntry> >::add(CServer::CMapListEntry const&) /home/chiller/Desktop/git/teeworlds/src/base/tl/sorted_array.h:23:31 teeworlds#4 0x55be3637d7d1 in CServer::MapListEntryCallback(char const*, int, int, void*) /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1504:17 teeworlds#5 0x55be36682aba in fs_listdir /home/chiller/Desktop/git/teeworlds/src/base/system.c:1583:6 teeworlds#6 0x55be36649f3f in CStorage::ListDirectory(int, char const*, int (*)(char const*, int, int, void*), void*) /home/chiller/Desktop/git/teeworlds/src/engine/shared/storage.cpp:299:5 teeworlds#7 0x55be3637d15a in CServer::MapListEntryCallback(char const*, int, int, void*) /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1492:22 teeworlds#8 0x55be36682aba in fs_listdir /home/chiller/Desktop/git/teeworlds/src/base/system.c:1583:6 teeworlds#9 0x55be36649f3f in CStorage::ListDirectory(int, char const*, int (*)(char const*, int, int, void*), void*) /home/chiller/Desktop/git/teeworlds/src/engine/shared/storage.cpp:299:5 teeworlds#10 0x55be3637d15a in CServer::MapListEntryCallback(char const*, int, int, void*) /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1492:22 teeworlds#11 0x55be36682aba in fs_listdir /home/chiller/Desktop/git/teeworlds/src/base/system.c:1583:6 teeworlds#12 0x55be36649f3f in CStorage::ListDirectory(int, char const*, int (*)(char const*, int, int, void*), void*) /home/chiller/Desktop/git/teeworlds/src/engine/shared/storage.cpp:299:5 teeworlds#13 0x55be3637c031 in CServer::InitMapList() /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1523:14 teeworlds#14 0x55be36373bb0 in CServer::Run() /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1281:2 teeworlds#15 0x55be3638e83b in main /home/chiller/Desktop/git/teeworlds/src/engine/server/server.cpp:1909:21 teeworlds#16 0x7fec6e2461c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 teeworlds#17 0x7fec6e246284 in __libc_start_main csu/../csu/libc-start.c:360:3 teeworlds#18 0x55be36279aa0 in _start (/home/chiller/Desktop/git/teeworlds/build/teeworlds_srv+0x1dfaa0) (BuildId: 9b8cae111ee49e0bd87b22dbd9f66cf8ddfb1d52) Address 0x7ffe71e6aa00 is located in stack of thread T0 at offset 64 in frame #0 0x55be3639f0ff in plain_range_sorted<CServer::CMapListEntry> partition_binary<plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry>(plain_range_sorted<CServer::CMapListEntry>, CServer::CMapListEntry) /home/chiller/Desktop/git/teeworlds/src/base/tl/algorithm.h:36 This frame has 5 object(s): [32, 64) 'value.byval' <== Memory access at offset 64 overflows this variable [96, 112) 'retval' [128, 144) 'range' [160, 176) 'ref.tmp' (line 52) [192, 208) 'ref.tmp20' (line 54) HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow /home/chiller/Desktop/git/teeworlds/src/base/system.c:2369:14 in str_comp_filenames Shadow bytes around the buggy address: 0x10004e3c54f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5530: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 =>0x10004e3c5540:[f2]f2 f2 f2 00 00 f2 f2 00 00 f2 f2 f8 f8 f2 f2 0x10004e3c5550: f8 f8 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10004e3c5580: 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00 f2 f2 0x10004e3c5590: 00 00 f2 f2 00 00 00 00 f3 f3 f3 f3 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==108107==ABORTING ```
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the "." overlap a bit on the "r" in the bottom right text :http://reivax2.free.fr/bug/screenshot00007.png The tee skin overlap a bit too on the score at bottom right
The text was updated successfully, but these errors were encountered: