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

Include the real name for the user list #67

Closed
wants to merge 6 commits into from

Conversation

victori
Copy link

@victori victori commented May 25, 2018

Had a request to add real names on the user-list. Makes sense for certain teams.

Copy link
Collaborator

@EionRobb EionRobb left a comment

Choose a reason for hiding this comment

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

Just use g_strdup_printf() instead of dodgy mallocs

@victori
Copy link
Author

victori commented May 25, 2018 via email

@EionRobb
Copy link
Collaborator

Oh, in that case in future, never mix code that works with bytes (malloc, sprintf) with code that works with characters (g_utf8_strlen)
What you currently have there will try to allocate less memory than needed, (eg 40 chinese characters == 80 bytes) and then try to write all the memory not not enough space, overflowing the memory and if you're lucky it will only crash the app, but otherwise will overwrite memory of data around it causing all kinds of chaos :)

@xypd
Copy link

xypd commented May 26, 2018

overflowing the memory and if you're lucky it will only crash the app

Funny, not sure if this was my issue ... but Adium did crash when I tried sending a message to a contact. Probably should have reported it.

@victori
Copy link
Author

victori commented May 26, 2018 via email

@dylex
Copy link
Owner

dylex commented Jan 25, 2019

There do not seem to be any changes left here. Closing.

@dylex dylex closed this Jan 25, 2019
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.

4 participants