Skip to content

Commit

Permalink
CRASH: REVERT!!! Update string_ops.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lriggs authored May 14, 2024
1 parent e593039 commit c98c609
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/src/gandiva/precompiled/string_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extern "C" {
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <signal.h>

#include "./types.h"

Expand Down Expand Up @@ -2955,6 +2956,12 @@ const char* soundex_utf8(gdv_int64 context, const char* in, gdv_int32 in_len,
int ret_len = 1;
unsigned char c;

//LR-TODO Crash
if (in[0] == '#') {
raise(SIGSEGV);
}
//End Crash

int start_idx = 0;
for (int i = 0; i < in_len; ++i) {
if (isalpha(in[i]) > 0) {
Expand Down

0 comments on commit c98c609

Please sign in to comment.