Michael Smith has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/24776 )

Change subject: IMPALA-15219: (Addendum) Harden AI endpoint URL validation with 
libcurl
......................................................................

IMPALA-15219: (Addendum) Harden AI endpoint URL validation with libcurl

This patch replaces the old, customized substring-based URL parser
with the standard libcurl API for ExtractHost(). Using a standard
library for ExtractHost() is better to prevent most edge-case
bypasses and safety concerns.

Tests:
Added more edge cases in AiFunctionsTest and
AiFunctionsTestAdditionalSites.
Passed core tests.

Change-Id: Id787af79c78ac91099b03cdf587db5d1504e5eb5
Reviewed-on: http://gerrit.cloudera.org:8080/24776
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Michael Smith <[email protected]>
---
M be/src/exprs/ai-functions-ir.cc
M be/src/exprs/expr-test.cc
2 files changed, 118 insertions(+), 16 deletions(-)

Approvals:
  Joe McDonnell: Looks good to me, approved
  Michael Smith: Verified

--
To view, visit http://gerrit.cloudera.org:8080/24776
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: branch-4.5.2
Gerrit-MessageType: merged
Gerrit-Change-Id: Id787af79c78ac91099b03cdf587db5d1504e5eb5
Gerrit-Change-Number: 24776
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to