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

Fixed bug that confuses lua_next. #38

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Conversation

verri
Copy link

@verri verri commented Oct 7, 2017

I fixed the problem that I mentioned in #37.

According to the manual:

If the value is a number, then lua_tolstring also changes the actual
value in the stack to a string. (This change confuses lua_next when
lua_tolstring is applied to keys during a table traversal.)

That leads to potential problems while reading maps which keys are
std::string or boost::variant<std::string, ...> and the lua table key is numeric.

If you decide to merge one of these PRs, I can rebase the other one.
Just let me know.

According to the manual:

> If the value is a number, then lua_tolstring also changes the actual
> value in the stack to a string. (This change confuses lua_next when
> lua_tolstring is applied to keys during a table traversal.)

That leads to potential problems while reading keys that are
boost::variant.
@verri
Copy link
Author

verri commented May 23, 2018

Any reason to not merge this PR? Is this project abandoned?

@Habbie
Copy link
Collaborator

Habbie commented May 23, 2018

@verri hi! this project is not abandoned, but we don't always find time to maintain it. I'll try to do a cleanup round soon. Apologies for the wait!

Habbie added a commit to Habbie/pdns that referenced this pull request Mar 17, 2020
Habbie added a commit to Habbie/pdns that referenced this pull request Mar 18, 2020
@Habbie Habbie merged commit bd6c66a into ahupowerdns:master Mar 11, 2021
Habbie added a commit to Habbie/pdns that referenced this pull request Mar 11, 2021
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.

2 participants