WweishaoxiongCloudService::Option syncMode 增加默认值避免未初始化读取
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
CloudService::Option syncMode 增加默认值避免未初始化读取 issues#2528 (datamgr_service): OnCloudSync 失败分支在 Unmarshal 失败时 读取 option.syncMode 用于日志打印,但该字段在 struct 定义中未初始化, 属未定义行为。datamgr_service 复用本仓的 CloudService::Option 定义,在 源头加默认值 0 后两仓同时受益。 - 不修改任何已暴露方法签名、错误码、IPC 序列化顺序 - 与同结构体 seqNum/isDownloadOnly 默认初始化保持一致 - 与 napi_rdb_context.h 中 syncMode(DistributedRdb::SyncMode::PUSH)=0 约定一致 - 现有所有调用点都显式赋值,行为不变 - 影响面限于 inner_api 层字段默认初始化,不破坏向后兼容 关联Issue: https://gitcode.com/openharmony/distributeddatamgr_datamgr_service/issues/2528 Co-Authored-By: Agent 🤖 AI[100%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[100%] Co-authored-by: opencode (MiniMax-M3) <ai@local> Change-Id: Icb3061584d346bf956b264b986e8de731aec2ae1 Signed-off-by: weishaoxiong <weishaoxiong2@h-partners.com> | 12 小时前 | |
fix: use extern C++ demangled names in versionscripts and add -fno-lto to CloudNotifierStubFuzzTest Replace compiler-specific _ZN mangled names with extern "C++" blocks using demangled C++ names for portability. Use * wildcard prefix to ensure vtable/typeinfo/template instantiation symbols are matched. Add -fno-lto workaround for LLD Thin LTO ARM .Ltmp undefined bug. Signed-off-by: guochao <guochao76@h-partners.com> Co-Authored-By: Agent Signed-off-by: guochao95 <guochao76@h-partners.com> 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: opencode (glm-5.1) <ai@local> Change-Id: I7e74ab33a69a47e49c5cb2bb01bf53021b0008e9 | 1 个月前 | |
fix: use extern C++ demangled names in versionscripts and add -fno-lto to CloudNotifierStubFuzzTest Replace compiler-specific _ZN mangled names with extern "C++" blocks using demangled C++ names for portability. Use * wildcard prefix to ensure vtable/typeinfo/template instantiation symbols are matched. Add -fno-lto workaround for LLD Thin LTO ARM .Ltmp undefined bug. Signed-off-by: guochao <guochao76@h-partners.com> Co-Authored-By: Agent Signed-off-by: guochao95 <guochao76@h-partners.com> 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: opencode (glm-5.1) <ai@local> Change-Id: I7e74ab33a69a47e49c5cb2bb01bf53021b0008e9 | 1 个月前 |