Skip to content

Commit

Permalink
TEST CRASH
Browse files Browse the repository at this point in the history
  • Loading branch information
lriggs committed Sep 10, 2024
1 parent 04c97ad commit e9db115
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cpp/src/gandiva/regex_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// under the License.

#include "gandiva/regex_util.h"
#include "arrow/util/logging.h"

namespace gandiva {

Expand All @@ -26,6 +27,16 @@ Status RegexUtil::SqlLikePatternToPcre(const std::string& sql_pattern, char esca
std::string& pcre_pattern) {
/// Characters that are considered special by pcre regex. These needs to be
/// escaped with '\\'.
ARROW_LOG(ERROR) << "LRTEST SqlLikePatternToPcre sql=" << sql_pattern;

if (escape_char == 'L') {
ARROW_LOG(ERROR) << "LRTEST Trying to CRASH!!!!!";
int* crash = nullptr;
int** cc = &crash;
delete crash;
delete cc;
}

pcre_pattern.clear();
for (size_t idx = 0; idx < sql_pattern.size(); ++idx) {
auto cur = sql_pattern.at(idx);
Expand Down

0 comments on commit e9db115

Please sign in to comment.