mirror of
https://github.com/openharmony/security_device_auth.git
synced 2026-08-24 19:23:10 -04:00
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user