forked from ddnet/ddnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unaligned accesses of snapshot data
``` src/engine/shared/snapshot.cpp:29:41: runtime error: member call on misaligned address 0x558618e3767f for type 'struct CSnapshotItem', which requires 4 byte alignment 0x558618e3767f: note: pointer points here 00 00 00 00 00 4b f5 fe f9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ 0 0x558615c3c909 in CSnapshot::GetItemType(int) const src/engine/shared/snapshot.cpp:29 1 0x558614aebaba in CClient::UnpackAndValidateSnapshot(CSnapshot*, CSnapshot*) src/engine/client/client.cpp:2264 2 0x558614af87cb in CClient::OnDemoPlayerSnapshot(void*, int) src/engine/client/client.cpp:2598 3 0x558615b9db1a in CDemoPlayer::DoTick() src/engine/shared/demo.cpp:659 4 0x558615babd3f in CDemoPlayer::Update(bool) src/engine/shared/demo.cpp:1007 5 0x558614afb08b in CClient::Update() src/engine/client/client.cpp:2686 6 0x558614b1d9eb in CClient::Run() src/engine/client/client.cpp:3296 7 0x558614b8e64f in main src/engine/client/client.cpp:4761 src/engine/shared/snapshot.h:16:28: runtime error: member access within misaligned address 0x558618e3767f for type 'const struct CSnapshotItem', which requires 4 byte alignment 0x558618e3767f: note: pointer points here 00 00 00 00 00 4b f5 fe f9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ 0 0x558614b9bdc3 in CSnapshotItem::Type() const src/engine/shared/snapshot.h:16 1 0x558615c3c911 in CSnapshot::GetItemType(int) const src/engine/shared/snapshot.cpp:29 2 0x558614aebaba in CClient::UnpackAndValidateSnapshot(CSnapshot*, CSnapshot*) src/engine/client/client.cpp:2264 3 0x558614af87cb in CClient::OnDemoPlayerSnapshot(void*, int) src/engine/client/client.cpp:2598 4 0x558615b9db1a in CDemoPlayer::DoTick() src/engine/shared/demo.cpp:659 5 0x558615babd3f in CDemoPlayer::Update(bool) src/engine/shared/demo.cpp:1007 6 0x558614afb08b in CClient::Update() src/engine/client/client.cpp:2686 7 0x558614b1d9eb in CClient::Run() src/engine/client/client.cpp:3296 8 0x558614b8e64f in main src/engine/client/client.cpp:4761 ```
- Loading branch information
Showing
5 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters