-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ARROW-7934 : [C++] Fix UriEscape for empty string #6486
Conversation
@ursabot crossbow submit -g gandiva |
AMD64 Conda Crossbow Submit (#92476) builder has been succeeded. Revision: b094c92 Submitted crossbow builds: ursa-labs/crossbow @ ursabot-538
|
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.
This should fix the nightly gandiva-linux failure where arrow-uri test for UriEscape with empty string is failing. When s is empty, the local variable escaped and s both point to the same address, for the library implementation that is being used in the docker image in the build, thereby creating problems.
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.
Please add a test which fails without this change, or at least link to documentation indicating uriEscapeExA
cannot accept an empty string.
There is already a test with empty string ( arrow/cpp/src/arrow/util/uri_test.cc Line 33 in f3ac832
uriEscapeExA return NULL if both input and output pointers are same
In the next line in uri.cc, string.resize is called with the null argument which causes the error. |
Thanks for the explanation @projjal . |
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.
+1
No description provided.