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

lmdb: Fix stack-allocated string and update python-lmdb #17095

Merged
merged 1 commit into from
May 10, 2023

Conversation

thomasfire
Copy link
Contributor

No description provided.

- * This works as long as no function between the call to mdb_strerror
- * and the actual use of the message uses more than 4K of stack.
- */
+ // Fix the return of stack-allocated string
Copy link
Sponsor

Choose a reason for hiding this comment

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

It's no longer stack-allocated if it's static.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but before it was stack allocated, so I fixed it

Copy link
Collaborator

Choose a reason for hiding this comment

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

Your fix looks fine.
But I agree that the comment might be confusing when upstreamed if it is referring to code that was there but is no longer "visible".
Maybe, something along the lines of "Avoid potential issue with stack-allocated string by using static" would be clearer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the suggestion, fixed

@thomasfire
Copy link
Contributor Author

Notified LMDB devs: https://bugs.openldap.org/show_bug.cgi?id=10050

@Biswa96
Copy link
Member

Biswa96 commented May 10, 2023

Please bump the pkgrel values in both PKGBUILD files.

…s on Clang platforms

Signed-off-by: Egor Savkin <es@m-labs.hk>
@Biswa96 Biswa96 merged commit d140beb into msys2:master May 10, 2023
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