| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: add null pointer checks to prevent crashes in notification service Add comprehensive null pointer validation across frameworks and services layers (notification_request, subscriber_image_util, napi converters, geofence service, live view service, preferences, subscriber manager, etc.) to prevent null-dereference crashes, and add unit tests covering the new null-check branches. Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I62f9e3a450dbdbbcf7b0657c7187c6f7709b01df | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(ans): fix memory leaks in NAPI async work and resource lifecycle management Check return values of napi_create_async_work and napi_queue_async_work_with_qos, properly clean up callback references, async work objects and asynccallbackinfo on failure paths. Use unique_ptr for exception safety in FromJson, fix null deref in ANI CheckCompleteEnvironment, dlclose handle in ExtensionWrapper destructor, and destroy timers in ExtensionServiceConnection destructor. Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I9f681bba5677db209f6f3691d19f78623699dbb3 | 6 天前 | |
feat(rom-size): ROM size optimization phase 1 - build config and symbol visibility Phase 1 of ROM size optimization (target: 30% reduction, baseline 7963KB). All changes are limited to BUILD.gn/.gni/.map files, no .cpp/.h modifications. Key changes: - Add notification_size_opt_cflags/ldflags public variables in notification.gni - Add -fno-rtti/-flto/-Bsymbolic/-fno-exceptions config to all production targets - Extract ANI sts_*.cpp (21 files) to ohos_shared_library notification_ani_common - Extract NAPI common*.cpp (12 files) to ohos_shared_library notification_napi_common - Tighten libans_innerkits.map from global:* to class-name-based export - Add version_script to 6 NAPI .so (export only napi_module) - Add version_script to 4 ANI .so (export only ANI_Constructor) - Feature-gate priority_notification/clone/geofence source files - Add distributed_notification_service_feature_clone flag Expected benefit: 500-1100KB reduction. Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I029559a06708665662b1d2f9b7f66dcae53ee96f Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> | 24 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(ans): fix warning check defects from issue #4250 Fix various static analysis findings including memory leaks, null pointer dereferences, use-after-free risks, integer overflow, enum range validation, and resource management issues. A. NAPI async work return value unchecked (30+ sites): check napi_create_async_work/napi_queue_async_work_with_qos return values, free asynccallbackinfo on failure; fix subscribe.cpp UB, badge query timeout leak, ETS variant GetEnv leaks C. Type safety: add enum range validation for IPC deserialization (SWITCH_STATE, LiveViewStatus), JSON (clone switch info), JS input (InputEditType, RingtoneType, BadgeStyle, SlotType); fix uint8_t truncation in multiline content marshalling D. Integer overflow: replace atoi/atoll with strtol/strtoll+ERANGE; fix FindLastString logic error (pos != npos always true); fix VectorToString int64_t->int truncation; fix GetRemainPartitionSize returning -1 as uint64_t E. UAF/memory: unregister distributed callbacks in destructor; add ffrt::wait in StopCacheCleanupTimer; unsubscribe CommonEvent in DialogManager destructor; remove DeathRecipient in SubscriberImpl destructor; wait for FFRT queue in LocalLiveViewSubscriberManager F. new(nothrow) unchecked: add null checks for recipient_/deathRecipient_ allocation in 5 manager classes G. Other: implement ClearButtonIconsResource; init HaMetaMessage sceneId_/branchId_; add dlsym for 5 missing function pointers; check OH_DecodingOptions_Create return; fix GetAllDoNotDisturbProfiles substring match; add array length limits; check CreateTimer return; fix pushRecipient_ overwrite logic; add try-catch for JSON parse Change-Id: I4204fe52d9fbbd8d89cf188892ab243847649f59 Change-Id: I5588bd9c663d54a17c429143721c124259401e8d Change-Id: If0705f229837ed1edf0a05712481fb9cfc1f7cda Change-Id: Id494add5740c95d908016934e69ae704c4ad6f70 Change-Id: I73990ec7e4ff7374a71e3da4692e5bc53bfdbc2c Change-Id: I57840e82aa808259fc43b9ae8b942f9b999f1271 Change-Id: I715fc92bede97bde739aed63e384359fd39ad3d7 Change-Id: Ib7dce869072b3b4b812fa46319dca3ce946b7c5a Change-Id: If7359da9013fb008cee436d4db3fd6aa3508421f Change-Id: I984f57d01cc39b9682f8ce08c88b146e50d132d1 Change-Id: I5b307d34ae22ae8a3919eacb1f3d4efe6c7ef75b Change-Id: I922a6fdfadb7344c4649a5e54f8ee439f87069cd Change-Id: I90d91e060c92d6fb0ff056801a58dc056d51b4bc Change-Id: I21e6e587511d98b2fff3306089b42d997333dfcf Change-Id: Ie9afd57cfeb66e5a68fa76a35862e84b47177fbf Change-Id: I29bc907d5653ee322b8a46c9c4523388f8492d47 Change-Id: Ie82eb2cf6541ef43bcd9254cf342e980e4ab19b7 Change-Id: I480ebfe965c7dcb13a2ca30a3b7fb73e35606309 Change-Id: I4e00bfd6020f9f6e50fcab4c7b2d11e824371417 Change-Id: I384d6621b6915c45ad4dc6013c52406bba1b2491 Change-Id: Ifb01195d74f70604e5dd1bad9e291e5ce4d96fcc Change-Id: I99764684c4c029a114734de1161d0591d59e15c1 Change-Id: I2637febf7282779082f5135671328dfaa75f441a Change-Id: I8db817f8e84da51e6c1bf69dfc67c90b1b516f41 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: Idaeb6de6233925455d7da38dc41299229244ba32 | 8 天前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
fix: add null pointer checks to prevent crashes in notification service Add comprehensive null pointer validation across frameworks and services layers (notification_request, subscriber_image_util, napi converters, geofence service, live view service, preferences, subscriber manager, etc.) to prevent null-dereference crashes, and add unit tests covering the new null-check branches. Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I62f9e3a450dbdbbcf7b0657c7187c6f7709b01df | 6 天前 | |
fix: add null pointer checks to prevent crashes in notification service Add comprehensive null pointer validation across frameworks and services layers (notification_request, subscriber_image_util, napi converters, geofence service, live view service, preferences, subscriber manager, etc.) to prevent null-dereference crashes, and add unit tests covering the new null-check branches. Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I62f9e3a450dbdbbcf7b0657c7187c6f7709b01df | 6 天前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
[feature]:add getNotificationParameters interface Agent's Completeness: about 30%-40% Signed-off-by: yangjun <yangjun273@huawei.com> Co-Authored-By: Agent | 4 个月前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
fix: add null pointer checks to prevent crashes in notification service Add comprehensive null pointer validation across frameworks and services layers (notification_request, subscriber_image_util, napi converters, geofence service, live view service, preferences, subscriber manager, etc.) to prevent null-dereference crashes, and add unit tests covering the new null-check branches. Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I62f9e3a450dbdbbcf7b0657c7187c6f7709b01df | 6 天前 | |
PC/PAD 展示应用级开关二 Signed-off-by: wangsen1994 <wangsen51@huawei.com> | 4 个月前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(ans): fix warning check defects from issue #4250 Fix various static analysis findings including memory leaks, null pointer dereferences, use-after-free risks, integer overflow, enum range validation, and resource management issues. A. NAPI async work return value unchecked (30+ sites): check napi_create_async_work/napi_queue_async_work_with_qos return values, free asynccallbackinfo on failure; fix subscribe.cpp UB, badge query timeout leak, ETS variant GetEnv leaks C. Type safety: add enum range validation for IPC deserialization (SWITCH_STATE, LiveViewStatus), JSON (clone switch info), JS input (InputEditType, RingtoneType, BadgeStyle, SlotType); fix uint8_t truncation in multiline content marshalling D. Integer overflow: replace atoi/atoll with strtol/strtoll+ERANGE; fix FindLastString logic error (pos != npos always true); fix VectorToString int64_t->int truncation; fix GetRemainPartitionSize returning -1 as uint64_t E. UAF/memory: unregister distributed callbacks in destructor; add ffrt::wait in StopCacheCleanupTimer; unsubscribe CommonEvent in DialogManager destructor; remove DeathRecipient in SubscriberImpl destructor; wait for FFRT queue in LocalLiveViewSubscriberManager F. new(nothrow) unchecked: add null checks for recipient_/deathRecipient_ allocation in 5 manager classes G. Other: implement ClearButtonIconsResource; init HaMetaMessage sceneId_/branchId_; add dlsym for 5 missing function pointers; check OH_DecodingOptions_Create return; fix GetAllDoNotDisturbProfiles substring match; add array length limits; check CreateTimer return; fix pushRecipient_ overwrite logic; add try-catch for JSON parse Change-Id: I4204fe52d9fbbd8d89cf188892ab243847649f59 Change-Id: I5588bd9c663d54a17c429143721c124259401e8d Change-Id: If0705f229837ed1edf0a05712481fb9cfc1f7cda Change-Id: Id494add5740c95d908016934e69ae704c4ad6f70 Change-Id: I73990ec7e4ff7374a71e3da4692e5bc53bfdbc2c Change-Id: I57840e82aa808259fc43b9ae8b942f9b999f1271 Change-Id: I715fc92bede97bde739aed63e384359fd39ad3d7 Change-Id: Ib7dce869072b3b4b812fa46319dca3ce946b7c5a Change-Id: If7359da9013fb008cee436d4db3fd6aa3508421f Change-Id: I984f57d01cc39b9682f8ce08c88b146e50d132d1 Change-Id: I5b307d34ae22ae8a3919eacb1f3d4efe6c7ef75b Change-Id: I922a6fdfadb7344c4649a5e54f8ee439f87069cd Change-Id: I90d91e060c92d6fb0ff056801a58dc056d51b4bc Change-Id: I21e6e587511d98b2fff3306089b42d997333dfcf Change-Id: Ie9afd57cfeb66e5a68fa76a35862e84b47177fbf Change-Id: I29bc907d5653ee322b8a46c9c4523388f8492d47 Change-Id: Ie82eb2cf6541ef43bcd9254cf342e980e4ab19b7 Change-Id: I480ebfe965c7dcb13a2ca30a3b7fb73e35606309 Change-Id: I4e00bfd6020f9f6e50fcab4c7b2d11e824371417 Change-Id: I384d6621b6915c45ad4dc6013c52406bba1b2491 Change-Id: Ifb01195d74f70604e5dd1bad9e291e5ce4d96fcc Change-Id: I99764684c4c029a114734de1161d0591d59e15c1 Change-Id: I2637febf7282779082f5135671328dfaa75f441a Change-Id: I8db817f8e84da51e6c1bf69dfc67c90b1b516f41 Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: Idaeb6de6233925455d7da38dc41299229244ba32 | 8 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
disable getDeviceRemindType Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> | 4 个月前 | |
修复通知弹窗多次请求回调异常&限制VOIP同步PCPAD Signed-off-by: xdongs <xdongs@163.com> | 11 个月前 | |
refactor(errors): implement unified error code layering architecture Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Co-Authored-by: Agent Change-Id: I136b4e503936f86c646fb936563a6eca6e7bc7d0 | 1 个月前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
fix(memleak): cleanup resources on napi async work failure and in service destructors Co-Authored-By: Agent Signed-off-by: stepend98 <yangjun273@huawei.com> Change-Id: I844bc20ffa457a05d7c4753e2c0e898e8c1097c9 | 6 天前 | |
Hilog日志整改 Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com> | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 24 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 8 天前 | ||
| 1 个月前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 1 个月前 | ||
| 4 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 6 天前 | ||
| 4 个月前 | ||
| 1 个月前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 8 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 4 个月前 | ||
| 11 个月前 | ||
| 1 个月前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 1 年前 |