Skip to content

Add alignment wrapper to pthread_getattr_np.#135

Merged
ptitSeb merged 1 commit into
ptitSeb:mainfrom
mogery:getattr-align-wrap
Oct 18, 2021
Merged

Add alignment wrapper to pthread_getattr_np.#135
ptitSeb merged 1 commit into
ptitSeb:mainfrom
mogery:getattr-align-wrap

Conversation

@mogery

@mogery mogery commented Oct 17, 2021

Copy link
Copy Markdown
Contributor

This fixes stack corruption when using pthread_getattr_np on hirsute (Ubuntu 21.04) and libc >=2.33 by adding a wrapper with getAlignedAttrWithInit(attr, 0).

This should also fix #130, but I'm still waiting for verification.

This fixes stack corruption when using pthread_getattr_np on
hirsute (Ubuntu 21.04) and libc >=2.33

This should also fix ptitSeb#130.
@ptitSeb

ptitSeb commented Oct 18, 2021

Copy link
Copy Markdown
Owner

Looks good to me. The attr wrapping was indeed missing there.

@mogery mogery marked this pull request as ready for review October 18, 2021 08:05
@mogery

mogery commented Oct 18, 2021

Copy link
Copy Markdown
Contributor Author

Alright, also good from my end, but 130 might need reopening.

@ptitSeb

ptitSeb commented Oct 18, 2021

Copy link
Copy Markdown
Owner

The issue with Hirsute (I assume that why you mention #130 ) can probably be a new ticket, I suspect the source is different.

@ptitSeb ptitSeb merged commit 36bfcd2 into ptitSeb:main Oct 18, 2021
@mogery

mogery commented Oct 18, 2021

Copy link
Copy Markdown
Contributor Author

They're still having a bit of trouble with Unity Preload. It's fine probably

@LilGripper

Copy link
Copy Markdown

I need help I don't understand what any of the stuff you put above mean. can you please explain it to me

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.

Caves of Qud Linux64 error

3 participants