[SQL][Function] Fix from/to_base64 may return incorrect value (#4183)
from/to_base64 may return incorrect value when the value is null #4130 remove the duplicated base64 code fix the base64 encoded string length is wrong, and this will cause the memory error
This commit is contained in:
@ -184,7 +184,7 @@ size_t base64_encode(const unsigned char* data, size_t length, unsigned char* en
|
||||
return output_length;
|
||||
}
|
||||
|
||||
static inline int64_t base64_decode(const char* data, size_t length, char* decoded_data) {
|
||||
int64_t base64_decode(const char* data, size_t length, char* decoded_data) {
|
||||
const char* current = data;
|
||||
int ch = 0;
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user