Advertisement
Baoulettes

oh yeah you read the title?

Mar 25th, 2022
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.35 KB | None | 0 0
  1. =================================================================
  2. ==28179==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xea7ba040 at pc 0x56f5c18e bp 0xffa616e8 sp 0xffa616d8
  3. READ of size 2 at 0xea7ba040 thread T0
  4. #0 0x56f5c18d in gfx_sp_vertex libultraship/Lib/Fast3D/gfx_pc.cpp:989
  5. #1 0x56f651f8 in gfx_run_dl libultraship/Lib/Fast3D/gfx_pc.cpp:2188
  6. #2 0x56f688fe in gfx_run libultraship/Lib/Fast3D/gfx_pc.cpp:2692
  7. #3 0x5729c101 in Ship::Window::RunCommands(Gfx*) libultraship/Window.cpp:276
  8. #4 0x56dc6d81 in Graph_ProcessGfxCommands soh/OTRGlobals.cpp:92
  9. #5 0x569799bf in RunFrame src/code/graph.c:507
  10. #6 0x572c4a52 in gfx_sdl_main_loop libultraship/Lib/Fast3D/gfx_sdl2.cpp:199
  11. #7 0x5729c529 in Ship::Window::MainLoop(void (*)()) libultraship/Window.cpp:308
  12. #8 0x56dc6c13 in Graph_ProcessFrame soh/OTRGlobals.cpp:87
  13. #9 0x56979aad in Graph_ThreadEntry src/code/graph.c:531
  14. #10 0x5697b971 in Main src/code/main.c:116
  15. #11 0x5697b5a8 in main src/code/main.c:46
  16. #12 0xf70914c9 (/lib/i386-linux-gnu/libc.so.6+0x214c9)
  17. #13 0xf70915a9 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x215a9)
  18. #14 0x5693df34 in _start (/home/baoulettes/.var/ShipWright/soh/soh.elf+0x3b1f34)
  19.  
  20. 0xea7ba040 is located 0 bytes to the right of 256-byte region [0xea7b9f40,0xea7ba040)
  21. allocated by thread T3 here:
  22. #0 0xf7a4c303 in operator new(unsigned int) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
  23. #1 0x5726722e in __gnu_cxx::new_allocator<Ship::Vtx>::allocate(unsigned int, void const*) /usr/include/c++/10/ext/new_allocator.h:115
  24. #2 0x57266bf1 in std::allocator<Ship::Vtx>::allocate(unsigned int) /usr/include/c++/10/bits/allocator.h:173
  25. #3 0x57266bf1 in std::allocator_traits<std::allocator<Ship::Vtx> >::allocate(std::allocator<Ship::Vtx>&, unsigned int) /usr/include/c++/10/bits/alloc_traits.h:460
  26. #4 0x572665bc in std::_Vector_base<Ship::Vtx, std::allocator<Ship::Vtx> >::_M_allocate(unsigned int) /usr/include/c++/10/bits/stl_vector.h:346
  27. #5 0x5726573e in void std::vector<Ship::Vtx, std::allocator<Ship::Vtx> >::_M_realloc_insert<Ship::Vtx const&>(__gnu_cxx::__normal_iterator<Ship::Vtx*, std::vector<Ship::Vtx, std::allocator<Ship::Vtx> > >, Ship::Vtx const&) /usr/include/c++/10/bits/vector.tcc:440
  28. #6 0x57265118 in std::vector<Ship::Vtx, std::allocator<Ship::Vtx> >::push_back(Ship::Vtx const&) /usr/include/c++/10/bits/stl_vector.h:1198
  29. #7 0x57264ccf in Ship::ArrayV0::ParseFileBinary(BinaryReader*, Ship::Resource*) libultraship/Array.cpp:30
  30. #8 0x57263e11 in Ship::ArrayFactory::ReadArray(BinaryReader*) libultraship/Factories/ArrayFactory.cpp:15
  31. #9 0x5722019f in Ship::ResourceLoader::LoadResource(std::shared_ptr<Ship::File>) libultraship/Factories/ResourceLoader.cpp:73
  32. #10 0x571de180 in Ship::ResourceMgr::LoadResourceThread() libultraship/ResourceMgr.cpp:127
  33. #11 0x5720153c in void std::__invoke_impl<void, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::__invoke_memfun_deref, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/invoke.h:73
  34. #12 0x5720114b in std::__invoke_result<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>::type std::__invoke<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/invoke.h:95
  35. #13 0x57200e9a in void std::thread::_Invoker<std::tuple<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*> >::_M_invoke<0u, 1u>(std::_Index_tuple<0u, 1u>) /usr/include/c++/10/thread:264
  36. #14 0x57200ca6 in std::thread::_Invoker<std::tuple<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*> >::operator()() /usr/include/c++/10/thread:271
  37. #15 0x571ff9e8 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*> > >::_M_run() /usr/include/c++/10/thread:215
  38. #16 0xf7482b40 (/lib/i386-linux-gnu/libstdc++.so.6+0xbdb40)
  39. #17 0xf79e9236 in asan_thread_start ../../../../src/libsanitizer/asan/asan_interceptors.cpp:207
  40. #18 0xf718f8b9 in clone (/lib/i386-linux-gnu/libc.so.6+0x11f8b9)
  41.  
  42. Thread T3 created by T0 here:
  43. #0 0xf79e92ca in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cpp:216
  44. #1 0xf7482ead in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/i386-linux-gnu/libstdc++.so.6+0xbdead)
  45. #2 0x571fe2d9 in std::thread::thread<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*, void>(void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/thread:149
  46. #3 0x571fcf7a in decltype (::new ((void*)(0)) std::thread((declval<void (Ship::ResourceMgr::*)()>)(), (declval<Ship::ResourceMgr*>)())) std::construct_at<std::thread, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::thread*, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/stl_construct.h:97
  47. #4 0x571fcfef in void std::allocator_traits<std::allocator<std::thread> >::construct<std::thread, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::allocator<std::thread>&, std::thread*, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/alloc_traits.h:514
  48. #5 0x571faac8 in std::_Sp_counted_ptr_inplace<std::thread, std::allocator<std::thread>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::allocator<std::thread>, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr_base.h:551
  49. #6 0x571f6857 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::thread, std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::thread*&, std::_Sp_alloc_shared_tag<std::allocator<std::thread> >, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr_base.h:682
  50. #7 0x571f32d4 in std::__shared_ptr<std::thread, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::_Sp_alloc_shared_tag<std::allocator<std::thread> >, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr_base.h:1371
  51. #8 0x571ee0d8 in std::shared_ptr<std::thread>::shared_ptr<std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::_Sp_alloc_shared_tag<std::allocator<std::thread> >, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr.h:408
  52. #9 0x571e6c12 in std::shared_ptr<std::thread> std::allocate_shared<std::thread, std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::allocator<std::thread> const&, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr.h:860
  53. #10 0x571e2cda in std::shared_ptr<std::thread> std::make_shared<std::thread, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr.h:876
  54. #11 0x571dcba3 in Ship::ResourceMgr::Start() libultraship/ResourceMgr.cpp:32
  55. #12 0x571dc3c1 in Ship::ResourceMgr::ResourceMgr(std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) libultraship/ResourceMgr.cpp:15
  56. #13 0x571d1450 in decltype (::new ((void*)(0)) Ship::ResourceMgr((declval<std::shared_ptr<Ship::GlobalCtx2> >)(), (declval<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>)(), (declval<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>)())) std::construct_at<Ship::ResourceMgr, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(Ship::ResourceMgr*, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/stl_construct.h:97
  57. #14 0x571d166a in void std::allocator_traits<std::allocator<Ship::ResourceMgr> >::construct<Ship::ResourceMgr, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<Ship::ResourceMgr>&, Ship::ResourceMgr*, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/alloc_traits.h:514
  58. #15 0x571ce9b9 in std::_Sp_counted_ptr_inplace<Ship::ResourceMgr, std::allocator<Ship::ResourceMgr>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:551
  59. #16 0x571cb97f in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<Ship::ResourceMgr, std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(Ship::ResourceMgr*&, std::_Sp_alloc_shared_tag<std::allocator<Ship::ResourceMgr> >, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:682
  60. #17 0x571c8524 in std::__shared_ptr<Ship::ResourceMgr, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<Ship::ResourceMgr> >, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:1371
  61. #18 0x571c571e in std::shared_ptr<Ship::ResourceMgr>::shared_ptr<std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<Ship::ResourceMgr> >, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:408
  62. #19 0x571c1e78 in std::shared_ptr<Ship::ResourceMgr> std::allocate_shared<Ship::ResourceMgr, std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<Ship::ResourceMgr> const&, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:860
  63. #20 0x571bc5de in std::shared_ptr<Ship::ResourceMgr> std::make_shared<Ship::ResourceMgr, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:876
  64. #21 0x571ab130 in Ship::GlobalCtx2::InitWindow() libultraship/GlobalCtx2.cpp:52
  65. #22 0x571aa357 in Ship::GlobalCtx2::CreateInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) libultraship/GlobalCtx2.cpp:23
  66. #23 0x56dc66a0 in OTRGlobals::OTRGlobals() soh/OTRGlobals.cpp:34
  67. #24 0x56dc68fb in InitOTR soh/OTRGlobals.cpp:48
  68. #25 0x5697b583 in main src/code/main.c:42
  69. #26 0xf70914c9 (/lib/i386-linux-gnu/libc.so.6+0x214c9)
  70.  
  71. SUMMARY: AddressSanitizer: heap-buffer-overflow libultraship/Lib/Fast3D/gfx_pc.cpp:989 in gfx_sp_vertex
  72. Shadow bytes around the buggy address:
  73. 0x3d4f73b0: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa
  74. 0x3d4f73c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  75. 0x3d4f73d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  76. 0x3d4f73e0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
  77. 0x3d4f73f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  78. =>0x3d4f7400: 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
  79. 0x3d4f7410: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  80. 0x3d4f7420: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  81. 0x3d4f7430: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  82. 0x3d4f7440: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  83. 0x3d4f7450: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  84. Shadow byte legend (one shadow byte represents 8 application bytes):
  85. Addressable: 00
  86. Partially addressable: 01 02 03 04 05 06 07
  87. Heap left redzone: fa
  88. Freed heap region: fd
  89. Stack left redzone: f1
  90. Stack mid redzone: f2
  91. Stack right redzone: f3
  92. Stack after return: f5
  93. Stack use after scope: f8
  94. Global redzone: f9
  95. Global init order: f6
  96. Poisoned by user: f7
  97. Container overflow: fc
  98. Array cookie: ac
  99. Intra object redzone: bb
  100. ASan internal: fe
  101. Left alloca redzone: ca
  102. Right alloca redzone: cb
  103. Shadow gap: cc
  104. ==28179==ABORTING
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement