函数base64_decode内变量inlen判断条件不准确
This commit is contained in:
@ -458,7 +458,7 @@ int base64_decode(const unsigned char* indata, unsigned int inlen, char* outdata
|
|||||||
unsigned char c = 0;
|
unsigned char c = 0;
|
||||||
int g = 3;
|
int g = 3;
|
||||||
|
|
||||||
if (indata == NULL || inlen <= 0 || outdata == NULL || outlen == NULL || inlen % 4 != 0) {
|
if (indata == NULL || inlen == 0 || outdata == NULL || outlen == NULL || inlen % 4 != 0) {
|
||||||
ereport(WARNING, (errmsg("input arguments are error, please check those.")));
|
ereport(WARNING, (errmsg("input arguments are error, please check those.")));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user