| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Merge branch 'fix/null-check-stability' of git@gitcode.com:stepend98/notification_distributed_notification_service.git into 'master' # Conflicts: # conflict services/ans/src/advanced_notification_service_ability.cpp # conflict services/ans/test/unittest/notification_preferences_test.cpp | 1 天前 | |
fix: ffi request enable stage mode Signed-off-by: dinghong <dinghong10@huawei.com> | 14 天前 | |
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 | 5 天前 | |
Merge branch 'fix/null-check-stability' of git@gitcode.com:stepend98/notification_distributed_notification_service.git into 'master' # Conflicts: # conflict services/ans/src/advanced_notification_service_ability.cpp # conflict services/ans/test/unittest/notification_preferences_test.cpp | 1 天前 | |
Co-Authored-By: hanwenhui Signed-off-by: hanwenhui <hanwenhui2@h-partners.com> | 3 天前 | |
Merge branch 'fix/null-check-stability' of git@gitcode.com:stepend98/notification_distributed_notification_service.git into 'master' # Conflicts: # conflict services/ans/src/advanced_notification_service_ability.cpp # conflict services/ans/test/unittest/notification_preferences_test.cpp | 1 天前 | |
fix ut Signed-off-by: let_it_rot <gaojiaqi7@h-partners.com> | 2 天前 | |
Co-Authored-By: hanwenhui Signed-off-by: hanwenhui <hanwenhui2@h-partners.com> | 3 天前 | |
fix(ans): fix heap-use-after-free in singleton DCLP and notificationList_ race 1. NotificationPreferences::GetInstance() and SystemSoundHelper::GetInstance(): replace broken DCLP with Meyer's singleton (C++11 thread-safe static local). The DCLP had unprotected shared_ptr reads causing data race when static instance_ was destroyed during process exit while ffrt worker threads called GetInstance(). 2. ClearRingtoneByApplication / ClearOverTimeRingToneInfo: - Remove 5-second delay (DEL_TASK_DELAY) from Submit calls. The delay caused SelfClean()'s drain to not wait for delayed tasks, leaving them pending after process exit. - Remove redundant std::bind wrapper, pass lambda directly. - Use Submit(func) without delay parameter. 3. serviceprivateutilsa_fuzzer: wrap direct DeleteAllByUserStopped() call with notificationSvrQueue_.SyncSubmit() to serialize with async tasks from OnUserRemoved/OnUserStopped, preventing concurrent read/write race on notificationList_ (list iterator use-after-free). 4. Fix empty if block in mock_ans_rdb_mgr_builder.cpp (cpplint). Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I8197f195c73f6cf2ea90e5a68c2afdea00d73ac0 | 2 天前 |