Skip to content
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

Bug in the compiled mta library for windows 7/8.x #3865

Open
1 task done
nweb opened this issue Nov 22, 2024 · 2 comments
Open
1 task done

Bug in the compiled mta library for windows 7/8.x #3865

nweb opened this issue Nov 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nweb
Copy link
Contributor

nweb commented Nov 22, 2024

Describe the bug

For some unknown reason, the compiled loader.dll library in MTA for Windows 7/8.x indicates completely different MD5 hashes of the client files being checked, in particular bass_aac.dll. The files themselves in both assemblies (Win 7/8/10+) are the same, have the same hash as in the source, but when starting the launcher an error occurs (Data file %s is missing. Possible virus activity).

Steps to reproduce

  1. Go to mtasa.com
  2. Download both versions of the game
  3. Extract mta/bass_aac.dll files from the installers
  4. Make sure that the MD5 hash of each file is 80CDC5A50B27C47E53B99DE4D4523698
  5. Extract mta/loader.dll files from the installers
  6. Make sure that the integrityCheckList table is built with an error for Win 7/8.x
    Image

Version

Client: v1.6.0-release-22789 (Windows 7/8.x)

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@nweb nweb added the bug Something isn't working label Nov 22, 2024
@botder
Copy link
Member

botder commented Nov 22, 2024

From the release/maetro branch:

struct
{
const char* expected;
const char* fileName;
} integrityCheckList[] = {{"36CB1B284BC7CBB4F25CD00BBB044550", "bass.dll"}, {"1B909B47946167D153FB94020393E781", "bass_aac.dll"},
{"E7E69A3B369F0ABA1A4A18C831BC4364", "bass_ac3.dll"}, {"E20A57EA7D845FADC9A48A0AA919121A", "bass_fx.dll"},
{"F47DCE69DAFAA06A55A4BC1F07F80C8A", "bassflac.dll"}, {"F246D72BA73E9624FE8BE66E785FB5C5", "bassmidi.dll"},
{"5DEEC10A943E352EF7E0223327E8B48C", "bassmix.dll"}, {"2F87C5E0A1B7B28C8FC0D7E74116DDFC", "bassopus.dll"},
{"0F1B2FC6C0C703A43A24DC05352E7ADA", "basswebm.dll"}, {"893113C6C49DC1E1EF288310E68DB306", "basswma.dll"},
{"C6A44FC3CF2F5801561804272217B14D", "D3DX9_42.dll"}, {"D439E8EDD8C93D7ADE9C04BCFE9197C6", "sa.dat"},
{"B33B21DB610116262D906305CE65C354", "D3DCompiler_42.dll"}, {"02ECD2919B3DAA59D6014EEFD29FC294", "tags.dll"},
{"0B3DD892007FB366D1F52F2247C046F5", "d3dcompiler_43.dll"}, {"D5D8C8561C6DDA7EF0D7D6ABB0D772F4", "xinput1_3_mta.dll"},
{"E1677EC0E21E27405E65E31419980348", "d3dcompiler_47.dll"}, {"E2BAC93166B0C2AD4D83E97FC1E88F8F", "XInput9_1_0_mta.dll"}};

@nweb
Copy link
Contributor Author

nweb commented Nov 23, 2024

From the release/maetro branch:

mtasa-blue/Client/loader/MainFunctions.cpp

Lines 862 to 875 in 9df22bf

struct
{
const char* expected;
const char* fileName;
} integrityCheckList[] = {{"36CB1B284BC7CBB4F25CD00BBB044550", "bass.dll"}, {"1B909B47946167D153FB94020393E781", "bass_aac.dll"},
{"E7E69A3B369F0ABA1A4A18C831BC4364", "bass_ac3.dll"}, {"E20A57EA7D845FADC9A48A0AA919121A", "bass_fx.dll"},
{"F47DCE69DAFAA06A55A4BC1F07F80C8A", "bassflac.dll"}, {"F246D72BA73E9624FE8BE66E785FB5C5", "bassmidi.dll"},
{"5DEEC10A943E352EF7E0223327E8B48C", "bassmix.dll"}, {"2F87C5E0A1B7B28C8FC0D7E74116DDFC", "bassopus.dll"},
{"0F1B2FC6C0C703A43A24DC05352E7ADA", "basswebm.dll"}, {"893113C6C49DC1E1EF288310E68DB306", "basswma.dll"},
{"C6A44FC3CF2F5801561804272217B14D", "D3DX9_42.dll"}, {"D439E8EDD8C93D7ADE9C04BCFE9197C6", "sa.dat"},
{"B33B21DB610116262D906305CE65C354", "D3DCompiler_42.dll"}, {"02ECD2919B3DAA59D6014EEFD29FC294", "tags.dll"},
{"0B3DD892007FB366D1F52F2247C046F5", "d3dcompiler_43.dll"}, {"D5D8C8561C6DDA7EF0D7D6ABB0D772F4", "xinput1_3_mta.dll"},
{"E1677EC0E21E27405E65E31419980348", "d3dcompiler_47.dll"}, {"E2BAC93166B0C2AD4D83E97FC1E88F8F", "XInput9_1_0_mta.dll"}};

Really. But the hashes are still not correct, make sure that bass_aac.dll from maetro does not have hash 1B909B47946167D153FB94020393E781.

You forgot to update hashes after commit c6a79fe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants