Michael Smith has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24798


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
---
M be/src/exprs/ai-functions-ir.cc
M be/src/exprs/expr-test.cc
2 files changed, 118 insertions(+), 16 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/98/24798/1
--
To view, visit http://gerrit.cloudera.org:8080/24798
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id787af79c78ac91099b03cdf587db5d1504e5eb5
Gerrit-Change-Number: 24798
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to