Skip to content

Conversation

@AndrewX98
Copy link
Contributor

@AndrewX98 AndrewX98 commented Dec 30, 2025

Minecraft 1.21.130.3 uses libPlayFabMultiplayer.so which requires the __strlcpy_chk symbol from Bionic libc. Without it, the game fails to load:

dlopenfailed: cannot locate symbol "__strlcpy_chk"

This PR adds the missing implementation following the same pattern as other fortified functions (__memcpy_chk, __strcpy_chk , etc.).

Changes:

common.h : Added function declaration
common.cpp : Added implementation with bounds checking, registered in
add_string_shimmed_symbols

Tested with: Minecraft 1.21.130.3, 1.21.144, 1.21.131

((((Very important remove the libmcpelauncher-updates.so))))

Added __strlcpy_chk function to handle string copy with size checks.
Copy link
Member

@ChristopherHX ChristopherHX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good to me

@ChristopherHX ChristopherHX merged commit ee9b731 into minecraft-linux:master Dec 30, 2025
@AndrewX98
Copy link
Contributor Author

Thank you, looks good to me

Thanks! I’m glad I could help fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants