!821 扩大参数限制

Merge pull request !821 from kehongxu/master
This commit is contained in:
openharmony_ci
2024-09-26 03:13:49 +00:00
committed by Gitee
5 changed files with 5 additions and 5 deletions
@@ -21,7 +21,7 @@
extern "C" {
#endif
#define MAX_STR_LEN 8192
#define MAX_STR_LEN (512 * 1024)
void* HcMalloc(uint32_t size, char val)
{
@@ -19,7 +19,7 @@
#include "hc_log.h"
#include "ohos_mem_pool.h"
#define MAX_STR_LEN 8192
#define MAX_STR_LEN (512 * 1024)
void *HcMalloc(uint32_t size, char val)
{
+1 -1
View File
@@ -30,7 +30,7 @@
extern "C" {
#endif
#define MAX_DATA_LEN 10240
#define MAX_DATA_LEN 102400
static HcMutex g_cBMutex;
struct CbStubInfo {
@@ -49,7 +49,7 @@ static const uint32_t RESTORE_CODE = 14701;
static const uint32_t DEFAULT_UPGRADE_OS_ACCOUNT_ID = 100;
#endif
#define MAX_DATA_LEN 10240
#define MAX_DATA_LEN 102400
ServiceDevAuth::ServiceDevAuth(bool serialInvokeFlag) : IRemoteStub(serialInvokeFlag)
{}
+1 -1
View File
@@ -1233,7 +1233,7 @@ static int32_t GetPseudonymId(int32_t osAccountId, const char *indexKey, char **
DEVICE_AUTH_API_PUBLIC int32_t ProcessCredential(int32_t operationCode, const char *reqJsonStr, char **returnData)
{
if (reqJsonStr == NULL || returnData == NULL || HcStrlen(reqJsonStr) > MAX_DATA_BUFFER_SIZE) {
if (reqJsonStr == NULL || returnData == NULL) {
LOGE("Invalid params!");
return HC_ERR_INVALID_PARAMS;
}