| 修改静态检查及格式错误问题 Signed-off-by: liqiang <liqiang121@huawei.com> Change-Id: Ifadd6b234af671146f325b0e198778073435d1b5 | 3 年前 |
| change some level1 DT to level0 Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 1 年前 |
| use compile define to remove dump related method Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| fix unittest part3 Signed-off-by: Ricky <yuegang7@huawei.com> Change-Id: I2a6cbef8f6afb7d16742d2f1af9deff6a7a11609 | 2 年前 |
| remove eventhandler in common_event_service Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| support dms intent Co-Authored-By: ya Signed-off-by: renjh5496 <renjianhao@h-partners.com> | 2 个月前 |
| add deathRecipient for staticSubscriberConnection Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| fix key to userId + bundleName Signed-off-by: yuechunyang <yuechunyang1@h-partners.com> | 5 个月前 |
| 解决json隐式转化可能导致的crash Co-Authored-By: Agent Signed-off-by: wangsen1994 <wangsen51@huawei.com> | 3 天前 |
| fix(ces): canonicalize file path before opening ifstream in GetJsonFromFile Use realpath() to canonicalize the path parameter in InnerCommonEventManager::GetJsonFromFile. After canonicalization, add IsValidConfigPath whitelist check to ensure the canonical path is under a controlled directory (/system/etc/, /vendor/etc/, /chipset/etc/), preventing arbitrary file reads. Then open the file with std::ifstream using the canonical path. This follows the realpath+whitelist pattern used in hiviewdfx IsValidPath (faultlog_util.cpp). Add unit tests for GetJsonFromFile covering all branches: - nullptr path, non-existent path (realpath fail) - path outside whitelist (IsValidConfigPath fail) - directory in whitelist (ifstream fail) - invalid/scalar/null/empty/array JSON content (parse fail) - valid JSON object (success) Closes #1238 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I2a2d3aa22794c96fe5e048c5915ec09dbfe1f7c8 | 5 天前 |
| add deathRecipient for staticSubscriberConnection Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| static subscriber support validation rule Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 1 年前 |
| IssueNo:https://gitee.com/openharmony/notification_common_event_service/issues/I7QOIL Description:事件通知分支覆盖率02Sig:SIG_ApplicationFramework Feature or Bugfix:Bugfix Binary Source: No Signed-off-by: wujiqin5@huawei.com <wujiqin5@huawei.com> Change-Id: Id706ecd01dbc1ae0ccfe855c6b41086a25a4a8d0 | 2 年前 |
| refactor can log event method Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 7 个月前 |
| use compile define to remove dump related method Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| fix common_event_freeze_test Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 6 个月前 |
| memory optimization: Optimize CES memory usage by container improvements - Replace std::map with std::unordered_map for O(1) lookup performance - Replace std::set with std::vector to reduce memory overhead - Compress deliveryState vector from int to uint8_t (4x space saving) - Optimize GetTopSubscriberCounts algorithm from O(n^2) to O(n) - Remove unused #include <list> Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-By: Agent <agent@example.com> Change-Id: Icb7821f4e2bb0d2e3135ca7df0a12e901670638a | 2 个月前 |
| fix tdd Signed-off-by: liuyanzhi <liuyanzhi3@huawei.com> Change-Id: Id80405553e326a88ad29fabb81181cca600bbb9e | 3 年前 |
| use compile define to remove dump related method Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| 0414 Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com> | 1 年前 |
| IssueNo:#I5I1M9 Description:Fix CommonEventPublishManagerEventUnitTest testcase failure. Sig:SIG_ApplicationFramework Feature or BugFix: Feature Binary Source: No Signed-off-by: zhangyafei.echo <zhangyafei12@huawei.com> Change-Id: Ie0770bebedb9d7993d4728f5b6a8612004125484 | 3 年前 |
| style: remove redundant empty lines within functions Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I467efe500cb8bdad0a1a8b3ffae9d24d09baeed2 | 2 个月前 |
| add new api to filter Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 1 年前 |
| Signed-off-by: zhuhan <zhuhan10@huawei.com> Change-Id: I512401ae6064978301d1e294e9943aaac91829a2 Change-Id: I797b62924b5e25d2f9846a996fe28ef028432edc | 3 年前 |
| use compile define to remove dump related method Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 |
| support dms intent Co-Authored-By: ya Signed-off-by: renjh5496 <renjianhao@h-partners.com> | 2 个月前 |
| Add unit tests for GetTopSubscriberCounts Add three test cases: - GetTopSubscriberCounts_0100: empty subscriberCounts_ - GetTopSubscriberCounts_0200: normal case with multiple processes, verify sorted by count desc - GetTopSubscriberCounts_0300: topNum less than available entries Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I9146b24a7c241c702f7bb68756ced3b1c755a6ef | 2 个月前 |
| add benchmark test case Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> Change-Id: Iec57ff898654b29ab6825460a860db997e8fe5ca Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> | 4 年前 |
| fix(ces): canonicalize file path before opening ifstream in GetJsonFromFile Use realpath() to canonicalize the path parameter in InnerCommonEventManager::GetJsonFromFile. After canonicalization, add IsValidConfigPath whitelist check to ensure the canonical path is under a controlled directory (/system/etc/, /vendor/etc/, /chipset/etc/), preventing arbitrary file reads. Then open the file with std::ifstream using the canonical path. This follows the realpath+whitelist pattern used in hiviewdfx IsValidPath (faultlog_util.cpp). Add unit tests for GetJsonFromFile covering all branches: - nullptr path, non-existent path (realpath fail) - path outside whitelist (IsValidConfigPath fail) - directory in whitelist (ifstream fail) - invalid/scalar/null/empty/array JSON content (parse fail) - valid JSON object (success) Closes #1238 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I2a2d3aa22794c96fe5e048c5915ec09dbfe1f7c8 | 5 天前 |
| add userId check for publish ans subscribe Signed-off-by: Ricky <yuegang7@huawei.com> Change-Id: I7d565fc0064be694f69db3dfb0e15b9a210271c4 | 2 年前 |
| disable unsubscribeCommonEvent cfi check and fix some unittest crash issue Signed-off-by: Ricky <yuegang7@huawei.com> Change-Id: I905dba819fc5f7f68b836e75baae48bbcbf5907e | 2 年前 |