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

Random crash during disassembling with fteqcc #275

Open
alexey-lysiuk opened this issue Sep 16, 2024 · 0 comments
Open

Random crash during disassembling with fteqcc #275

alexey-lysiuk opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working FTEQCC For issues regarding the language, compiler, or its IDE

Comments

@alexey-lysiuk
Copy link

Attempt to disassemble progs.dat from Something Wicked This Way Comes via fteqcc -d crashes randomly at this location.

QC_snprintfz(fname, sizeof(fname), "%s %s", builtins[bi].text, GetString(functions[i].s_name));
DecompileCalcProfiles at decomp.c:1119:5
DecompileDecompileFunctions() at decomp.c:3291:2
DecompileProgsDat() at decomp.c:3431:2
DoDecompileProgsDat() at qcctui.c:208:2
main() at qcctui.c:409:6

Value of functions[1].s_name seems to be random, in addition to signed/unsigned mismatch of string_t and dstring_t definitions when calling GetString() function.

Reproduced with the current HEAD, 0976808.

@Xylemon Xylemon added FTEQCC For issues regarding the language, compiler, or its IDE bug Something isn't working labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FTEQCC For issues regarding the language, compiler, or its IDE
Projects
None yet
Development

No branches or pull requests

2 participants