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

API: Passing -1 to function cMonster:FamilyFromType crashes the server #5442

Open
Seadragon91 opened this issue Sep 25, 2022 · 0 comments · May be fixed by #5444
Open

API: Passing -1 to function cMonster:FamilyFromType crashes the server #5442

Seadragon91 opened this issue Sep 25, 2022 · 0 comments · May be fixed by #5444

Comments

@Seadragon91
Copy link
Contributor

Server OS: Linux
Cuberite Commit id: b73cd11

Expected behavior

Passing -1 to function cMonster:FamilyFromType should not crash the server.

Actual behavior

Server crashes at:

UNREACHABLE("Unhandled mob type");

Steps to reproduce the behavior

Call this lua code from a command:
cMonster:FamilyFromType(-1)

Found by APIFuzzing.

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 a pull request may close this issue.

1 participant