Commit Graph

1140 Commits

Author SHA1 Message Date
liuyuxiu fd06c3a5d1 tdd add
Signed-off-by: liuyuxiu <1175395694@qq.com>
2025-06-12 11:15:12 +08:00
openharmony_ci b0c42dbd02 !99 add tdd
Merge pull request !99 from liuyuxiu/master
2025-06-11 08:13:33 +00:00
liuyuxiu 5da3a048ef add tdd
Signed-off-by: liuyuxiu <1175395694@qq.com>
2025-06-11 10:49:04 +08:00
openharmony_ci 4e9aa24de3 !98 bug fix 53154
Merge pull request !98 from liuyuxiu/master
2025-06-10 13:25:11 +00:00
liuyuxiu e5cc5dd84a update tests/parse_examples.c.
Signed-off-by: liuyuxiu <liuyuxiu2@huawei.com>
2025-06-10 11:31:58 +00:00
liuyuxiu 514f53655d bugfix
Signed-off-by: liuyuxiu <1175395694@qq.com>
2025-06-10 15:39:04 +08:00
liuyuxiu 6ccdcd9afd bug fix
Signed-off-by: liuyuxiu <1175395694@qq.com>
2025-06-05 14:54:18 +08:00
openharmony_ci 42ef962989 !97 revert bugfix
Merge pull request !97 from liuyuxiu/master
2025-06-05 06:46:36 +00:00
liuyuxiu d56a296582 revert bugfix
Signed-off-by: liuyuxiu <1175395694@qq.com>
2025-06-05 11:22:30 +08:00
openharmony_ci 6d05770b54 !92 cjson组件1.7.15版本bugfix
Merge pull request !92 from liuyuxiu/master
2025-05-22 09:38:59 +00:00
liuyuxiu 40251b9666 bugfix
Signed-off-by: liuyuxiu <1175395694@qq.com>
2025-05-20 18:14:39 +08:00
openharmony_ci a958a4c53d !88 CVE-2023-26819 漏洞修复
Merge pull request !88 from youbing54/master
2025-05-14 02:38:37 +00:00
youbing54 e2891073e2 IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IC750Q
describe: CVE-2023-26819 漏洞修复
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2025-05-13 16:59:15 +08:00
openharmony_ci a4d4630bd6 !87 回退64位修改
Merge pull request !87 from youbing54/master
2025-05-13 08:10:10 +00:00
youbing54 82d90be219 IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IC7ESI
describe: 回退64位修改
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2025-05-13 14:30:05 +08:00
openharmony_ci 228ab82c03 !85 Revert "fix 【漏洞修复】 CVE-2023-26819"
Merge pull request !85 from youbing54/master
2025-05-13 03:27:23 +00:00
youbing54 8e9d81203b IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IC740N
describe: CVE-2023-26819 代码回退
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2025-05-12 15:34:18 +08:00
openharmony_ci df6b51919d !84 fix 【漏洞修复】 CVE-2023-26819
Merge pull request !84 from 蒋码云/master
2025-05-10 10:13:24 +00:00
jiangtao57 6689549a29 fix 【漏洞修复】 CVE-2023-26819
Signed-off-by: jiangtao57 <jiangtao57@huawei.com>
Change-Id: I34a9b7a2e4800aca7cc91635bd2414639f9c42de
2025-05-09 21:04:13 +08:00
openharmony_ci 383380533b !78 修改license
Merge pull request !78 from youbing54/master
2025-01-16 02:12:18 +00:00
youbing54 1c9f653159 IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IBHVHB
describe: 修改license
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2025-01-15 10:33:53 +08:00
openharmony_ci 9750e409e9 !75 漏洞修复:check for NULL in cJSON_DetachItemViaPointer
Merge pull request !75 from youbing54/master
2024-09-02 02:17:06 +00:00
youbing54 f9fcedd3b9 IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IANUKP
describe: check for NULL in cJSON_DetachItemViaPointer
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2024-08-31 16:36:40 +08:00
openharmony_ci ef9690d18e !73 cJson添加后向保护
Merge pull request !73 from youbing54/master
2024-08-29 08:07:29 +00:00
youbing54 eef2a51aff IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IANAZ1
describe: cjson添加后向保护
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2024-08-29 11:41:57 +08:00
openharmony_ci 0b1c599c8f !71 jsoncpp添加后向保护
Merge pull request !71 from youbing54/master
2024-08-20 08:00:50 +00:00
youbing54 3701afe2a9 IssueNo: https://gitee.com/openharmony/third_party_jsoncpp/issues/IAL5A7
describe: jsoncpp添加后向保护
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2024-08-20 11:30:13 +08:00
openharmony_ci 1f0243dbd8 !69 代码同步
Merge pull request !69 from youbing54/master
2024-07-22 06:48:31 +00:00
youbing54 f9c6ce31f4 IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IAEKV4
describe: Code synchronization
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2024-07-22 11:13:46 +08:00
openharmony_ci 643d85808e !68 cJSON升级1.7.7版本
Merge pull request !68 from youbing54/master
2024-07-03 08:41:59 +00:00
youbing54 c717f2eb93 IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/IAA61F
describe: Upgrade cJSON to version 1.7.7
Feature or Bugfix: Bugfix
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2024-07-03 11:34:53 +08:00
openharmony_ci 64ae6aaf97 !66 合入int64特性的补丁
Merge pull request !66 from borne/br1
2024-06-25 13:59:27 +00:00
borne 87569a8587 feat: add int64 support
Offering: Open Source Institute

This commit adds int64 support for cjson. To enable int64, you need to define the macro ENABLE_INT64. To make it more clear, you need to build cjson like this if you are using makefile:

mkdir build
cd build
cmake -DENABLE_INT64=ON ..
make

This implementation changed the type of valueint in struct cJSON: from int to long long(int64), and added a new flag cJSON_IsInt64.
For a int64 cJSON item, the value of item->type would be cJSON_Number | cJSON_IsInt64.

The existing functions parse_number and print_number can handle int64 now.

Considering we have added a new type cJSON_IsInt64, some new functions have been added:
CJSON_PUBLIC(long long *) cJSON_GetInt64NumberValue(cJSON * const item)
CJSON_PUBLIC(cJSON_bool) cJSON_IsInt64Number(const cJSON * const item)
CJSON_PUBLIC(cJSON *) cJSON_CreateInt64Number(long long integer)
CJSON_PUBLIC(cJSON*) cJSON_AddInt64NumberToObject(cJSON * const object, const char * const name, const long long integer)
CJSON_PUBLIC(long long) cJSON_SetInt64NumberValue(cJSON * const object, const long long integer)

And some existing functions are also adjusted for int64, including parse_number, cJSON_SetNumberHelper, print_number, cJSON_CreateNumber, cJSON_Compare and compare_json(in cJSON_Utils).

Besides the code changes, we have also added some testcases for int64.
These tests will run if ENABLE_INT64 is turned on.

Ref:PeterAlfredLee
https://github.com/DaveGamble/cJSON/pull/689

Signed-off-by: borne <bo.lu@huawei.com>
2024-06-21 13:05:42 +08:00
openharmony_ci e603594778 !60 调用parse_string增加offset判断
Merge pull request !60 from 刘波/master
2024-05-13 09:29:09 +00:00
liubo 14cf937545 Description: 调用parse_string增加offset判断
IssueNo:https://gitee.com/openharmony/third_party_cJSON/issues/I9OUF5
Binary Source:No
Signed-off-by: liubo419 <liubo419@huawei.com>
2024-05-13 14:39:19 +08:00
openharmony_ci 4b09deea67 !59 cJSON编译整改验收
Merge pull request !59 from youbing54/master
2024-04-26 07:22:39 +00:00
youbing54 d794393128 Description: CJSON Compilation Rectification
IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/I9JSGK
Feature or Bugfix: Feature
Binary Source:Yes
Signed-off-by: youbing54<youbing3@huawei.com>
2024-04-26 10:46:52 +08:00
openharmony_ci 4878244fd3 !58 cJSON_SetValuestring入参增加判空防止错误调用导致崩溃
Merge pull request !58 from 刘波/master
2024-04-08 06:29:52 +00:00
liubo 53cc2fa373 Description: cJSON_SetValuestring入参增加判空防止错误调用导致崩溃
IssueNo:https://gitee.com/openharmony/third_party_cJSON/issues/I9EP9J
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: liubo419 <liubo419@huawei.com>
2024-04-08 10:07:07 +08:00
openharmony_ci 6c44a5fbc4 !57 第三方cjson部件独立编译整改
Merge pull request !57 from tongkai0808fh/master
2024-03-13 08:47:10 +00:00
tongkai0808fh 22d0a0caf0 部件加入innerAPI配置
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-03-13 06:51:53 +00:00
openharmony_ci 21017400e1 !51 修复mini,small报错
Merge pull request !51 from 谢霆威/master
2024-02-23 01:23:26 +00:00
openharmony_ci 178e3722b7 !54 fix undefined symbol on macos while link cJSON.dylib
Merge pull request !54 from fupengfei/master
2024-02-21 07:42:24 +00:00
fupengfei001 34262b2989 fix undefined symbol on macos while link cJSON.dylib
Signed-off-by: fupengfei001 <fupengfei6@huawei.com>
2024-02-21 11:50:34 +08:00
谢霆威 9d217528be Merge branch 'master' of gitee.com:openharmony/third_party_cJSON into master
Signed-off-by: 谢霆威 <2158863620@qq.com>
2024-02-19 06:51:44 +00:00
openharmony_ci 9eb4d9dfc7 !52 cJSON部件独立编译改造
Merge pull request !52 from tongkai0808fh/master
2024-02-18 07:46:31 +00:00
tongkai0808fh d669f6c15f cJSON部件独立编译整改
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-02-18 06:30:19 +00:00
谢霆威 5d939eee9c !1 临时修改,修复mini,small报错
Merge pull request !1 from 谢霆威/N/A
2024-02-05 06:40:25 +00:00
谢霆威 9a534d1d02 临时修改,修复mini,small报错
Signed-off-by: 谢霆威 <2158863620@qq.com>
2024-02-05 06:40:11 +00:00
openharmony_ci 05e494eca0 !50 Change: Declare cjson as inner_kits
Merge pull request !50 from shilong/master
2024-02-01 11:36:50 +00:00