fix(test): adapt unit tests for Qt6 compilation and runtime#420
Conversation
There was a problem hiding this comment.
Sorry @pengfeixx, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
Adapt QMouseEvent constructors to Qt6 signature (QPointF, 6-param). Fix sizeof(QString) misuse causing stack overflow on Qt6. Fix null deref in bindFontBySizeAndWeight before null check. Fix AptConfigMessage while loop mid() out-of-bounds on Qt6. Initialize DebIr bool members to prevent UB from uninitialized reads. 适配单元测试到Qt6环境:修复QMouseEvent构造函数签名、 sizeof(QString)误用、空指针解引用、mid()越界及未初始化成员。 Log: 修复单元测试Qt6编译和运行兼容性 Influence: 单元测试可在Qt6环境下正常编译运行,修复了多处ASAN检测到的内存安全问题。
0963120 to
4618682
Compare
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的Git Diff。本次修改主要涉及版权年份更新、结构体成员默认初始化、空指针解结防护、字符串解析逻辑修复、Qt类构造函数参数适配以及 整体来看,这些修改都是非常有价值的,修复了多个潜在的Bug和安全隐患。以下是针对各个修改点的详细审查意见: 1. 语法与逻辑🟢 优秀:修复
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
Adapt QMouseEvent constructors to Qt6 signature (QPointF, 6-param). Fix sizeof(QString) misuse causing stack overflow on Qt6. Fix null deref in bindFontBySizeAndWeight before null check. Fix AptConfigMessage while loop mid() out-of-bounds on Qt6. Initialize DebIr bool members to prevent UB from uninitialized reads.
适配单元测试到Qt6环境:修复QMouseEvent构造函数签名、
sizeof(QString)误用、空指针解引用、mid()越界及未初始化成员。
Log: 修复单元测试Qt6编译和运行兼容性
Influence: 单元测试可在Qt6环境下正常编译运行,修复了多处ASAN检测到的内存安全问题。