Xxdongs2009BTI使能 Co-Authored-By:xdongs2009
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(napi): deliver createSubscriber async exception via callback/promise reject CreateSubscriber's Complete callback invokes napi_new_instance which may trigger CommonEventSubscriberConstructor to throw (e.g. ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID 401). The pending exception was never cleared, so ReturnCallbackPromise's napi_call_function/napi_reject_deferred silently failed: the app could neither receive the error via callback/promise nor catch it via try/catch in the async flow. Detect and clear the pending exception after napi_new_instance, extract its code property, and deliver it through ReturnCallbackPromise (callback error arg / promise reject) with a real {code, message}. Also guard against a null constructor before napi_new_instance. Applied to the napi_common_event (commonEventManager) module only; the deprecated common_event module is not maintained. Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I1c4905bb61f06e478eaf74f35bd492995d5c5b7b | 1 个月前 | |
fix(ces): fix 37 warnings from issue #1244 P0 (9 fixes - security/crash/deadlock): - common_event_subscriber_manager: fail-open version filter → fail-closed - bundle_manager_helper: add ResetCallingIdentity for IPC - common_event (core): move IPC outside lock in UnSubscribeCommonEvent/Sync - common_event_death_recipient: fix DCLP data race on statusChangeListener_ - napi_common_event: add missing SetEnv in SubscribeToEvent - napi_common_event: fix dangling ref_ in Subscribe error path - ani_common_event: fix callback_ use-after-free in UnsubscribeAndRemoveInstance - common_event_subscriber_manager: fix use-before-null-check in GetSubscriberRecordsByWantLocked - common_event_subscriber_manager: fix empty vector deref + wrong PROCESS_NAME in audit P1 (23 fixes - null deref/data race/resource leak): - common_event_control_manager: add null checks for commonEventData/publishInfo in 9 functions - common_event_control_manager: move state.load() inside lock in FinishReceiver (TOCTOU) - common_event_control_manager: clear frozen event maps after publish - common_event_subscriber_manager: add null check + atomic hasCompacted_ - common_event_subscriber_manager: fix null deref in CompactSubscriberDataStructures - static_subscriber_manager: fix data race on validSubscribers_ (unify lock) - common_event_publish_info: add ReadFromParcel validation for subscriberUids_/Type - ani_common_event: fix GlobalReference leak in subscribeExecute/subscribeToEventExecute - ani_common_event: fix orphan subscriber in gcCallback/unsubscribeCallback - ani_common_event: fix null deref + data race in transferToStaticSubscriber/Dynamic - ani_common_event_utils: add missing return in CreateBusinessErrorObject - ani_common_event_utils: fix data confusion + uninit in ConvertCommonEventDataToEts - ani_common_event_utils: fix nullptr to ThrowError P2 (5 fixes - NAPI return values/defensive): - napi_common_event: check napi_create_async_work return in Publish/CreateSubscriber - common_event (napi): check napi_create_async_work return in IsStickyCommonEvent - ani_common_event: add eventId null check in publishExecute - ani_common_event_utils: fix GetNullObject to throw on failure Change-Id: I9b00793f0614946e99afb21726be5a009f7c1acf Change-Id: Iead71b227fafbe30fe5c791a7112436d5ece8c44 Change-Id: I08e53c1fd1e87e00408e2a69614986aace7b75d2 Change-Id: I8444bb321756260c9b71565176aa1c2c394a94c9 Change-Id: Ib4dca8468fc72b846faa6d470bd8788a2dc96b34 Change-Id: I9e8203776276ab9d6383f03faf7e628c02bf5f5a Change-Id: Idfff0566ab08ca80af404089ecabfe66faa0f212 Change-Id: Id17ff6c76dc11e996cf286c97116681a0fcbab8a Change-Id: I02dfbd4885a7921135bd4b1ab84b81f389bdc394 Change-Id: I7780a27d56f4c8d76a288783654e42b6f44a31c7 Change-Id: Ia747849667bb6b6e7903fb89b8e70a53628ace6c Change-Id: I562390e37e249d85e21abc70bd37ebf5ae06a116 Change-Id: Ibd81577950b289436ee0292a982932358dc3184e Change-Id: Icabced16dec3a8d34baf63b3e5c206ea2c9241da Change-Id: I1c9e5ac2ca608c94abc633e5dad19e7898c9adad Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I85e55168d3e18167f42bc8aced026f9bcf429038 | 11 天前 | |
BTI使能 Co-Authored-By:xdongs2009 Signed-off-by: xdongs2009 <xdongs@163.com> | 1 天前 |