-
Notifications
You must be signed in to change notification settings - Fork 377
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
lua: prevent serialization of error for ucdata #9413
lua: prevent serialization of error for ucdata #9413
Conversation
Without checking the return value of lua_pcall()` in `lua_field_inspect_ucdata()`, the error message itself is returned as a serialized result. The result status of `lua_pcall()` is not ignored now. NO_DOC=bugfix Closes tarantool#9396
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Buristan, thanks for the patch! LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch. I don't see any issues with the change, LGTM.
Nit: @Buristan, I am just curious, why did you leave the XXX
in the test comments?
@Lord-KA,
|
Personally, I don't see anything wrong with using |
The alternative solution is to use just
lua_call()
instead, since the error should be caught somewhere in the upper frames.The results of the benchmark below for both ways are quite similar, so I prefer the most common way (the one in the patch):
lua_pcall()
lua_call()