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

Logging: Passing equivalent of std::string.empty().c_str() seems to crash with out of range. #94

Open
DeltaGW2 opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@DeltaGW2
Copy link
Member

DeltaGW2 commented Jan 3, 2025

Investigate properly as this might be a usage issue and not an issue on Nexus end.

To Reproduce
Steps to reproduce the behavior:

  1. G::APIDefs->Log(ELogLevel_DEBUG, "dbg", String::ToString(user.GetAccountName()).c_str());
  2. GetAccountName() constructs a std::wstring from a wchar_t 0x0
  3. Crash out of range deep in Nexus

Wrapping it in a String::Format("%s", ...) doesn't change the outcome.

Expected behavior
An empty message is printed or the message is simply skipped.

@DeltaGW2 DeltaGW2 added the bug Something isn't working label Jan 3, 2025
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

1 participant