IssueNo:#I9HKH0:[Bug]: 修复动画中修改displayCount导航点位置异常的问题
Description:(提交描述)修复动画中修改displayCount导航点位置异常的问题
Sig: SIG_ApplicationFramework
Feature or Bugfix:(需求填Feature,缺陷填Bugfix)Bugfix
Binary Source:No(涉及则Yes)
TDD:(Pass/Fail/评估不涉及)Pass,失败用例非本次修改导致

{
  "time_stamp": "2024-04-17 21:49:01.406642",
  "execute_time": "10.1 seconds",
  "total_execute_tests": 6196,
  "failed_tests_count": 41,
  "unavailable": [
    "dialog_test_ng",
    "text_test_ng",
    "overlay_manager_test_ng",
    "rich_editor_test_ng",
    "time_picker_test_ng",
    "xcomponent_test_ng"
  ],
  "failed": [
    {
      "test_suite_name": [
        "GridPropertyTestNg"
      ],
      "total_count": "8",
      "failed_count": "2",
      "failed_testcase_name": [
        "UpdateSpan_Test002",
        "UpdateOffset_Test"
      ]
    },
    {
      "test_suite_name": [
        "AccessibilityPropertyTestNg"
      ],
      "total_count": "6",
      "failed_count": "2",
      "failed_testcase_name": [
        "AccessibilityPropertyTest004",
        "AccessibilityPropertyTest006"
      ]
    },
    {
      "test_suite_name": [
        "UINodeTestNg"
      ],
      "total_count": "50",
      "failed_count": "2",
      "failed_testcase_name": [
        "UINodeTestNg024",
        "UINodeTestNg025"
      ]
    },
    {
      "test_suite_name": [
        "ViewPartialUpdateModelTestNg"
      ],
      "total_count": "9",
      "failed_count": "3",
      "failed_testcase_name": [
        "ViewPartialUpdateModelTestNg004",
        "ViewPartialUpdateModelTestNg005",
        "ViewPartialUpdateModelTestNg007"
      ]
    },
    {
      "test_suite_name": [
        "FocusHubTestNg"
      ],
      "total_count": "96",
      "failed_count": "5",
      "failed_testcase_name": [
        "FocusHubTestNg0015",
        "FocusHubRemoveChildTest001",
        "FocusHubOnKeyEvent003",
        "FocusHubTestDisableBlur001",
        "FocusHubTestDisableKey001"
      ]
    },
    {
      "test_suite_name": [
        "RadioTestNg"
      ],
      "total_count": "57",
      "failed_count": "8",
      "failed_testcase_name": [
        "RadioPaintMethodTest010",
        "RadioLayoutAlgorithmTest002",
        "RadioLayoutAlgorithmTest003",
        "RadioLayoutAlgorithmTest004",
        "RadioLayoutAlgorithmTest005",
        "RadioLayoutAlgorithmTest006",
        "RadioLayoutAlgorithmTest007",
        "RadioLayoutAlgorithmTest008"
      ]
    },
    {
      "test_suite_name": [
        "CheckBoxGroupTestNG"
      ],
      "total_count": "54",
      "failed_count": "1",
      "failed_testcase_name": [
        "CheckBoxGroupPaintPropertyTest029"
      ]
    },
    {
      "test_suite_name": [
        "StageTestNg"
      ],
      "total_count": "23",
      "failed_count": "3",
      "failed_testcase_name": [
        "PagePatternTest001",
        "PagePatternTest004",
        "PagePatternTest005"
      ]
    },
    {
      "test_suite_name": [
        "ScrollableTestNg"
      ],
      "total_count": "79",
      "failed_count": "1",
      "failed_testcase_name": [
        "InitMouseEvent001"
      ]
    },
    {
      "test_suite_name": [
        "TextFieldUXTest",
        "TextFieldModifyTest",
        "TextInputCursorTest",
        "TextInputUpdateTestNg"
      ],
      "total_count": "240",
      "failed_count": "5",
      "failed_testcase_name": [
        "TextIsEmptyRect001",
        "UpdateCaretByTouchMove001",
        "UpdateSecondHandleInfo002",
        "OnTextChangedListenerCaretPosition006",
        "AdjustTextInReasonableArea"
      ]
    },
    {
      "test_suite_name": [
        "SwiperControllerTestNg"
      ],
      "total_count": "406",
      "failed_count": "1",
      "failed_testcase_name": [
        "ShowNext004"
      ]
    },
    {
      "test_suite_name": [
        "RatingTestNg"
      ],
      "total_count": "17",
      "failed_count": "1",
      "failed_testcase_name": [
        "RatingMeasureTest013"
      ]
    },
    {
      "test_suite_name": [
        "MenuTestNg"
      ],
      "total_count": "245",
      "failed_count": "3",
      "failed_testcase_name": [
        "SubMenuLayoutAlgorithmTestNg002",
        "SubMenuLayoutAlgorithmTestNg003",
        "MenuLayoutAlgorithmAPI11PaddingTest1"
      ]
    },
    {
      "test_suite_name": [
        "OptionTestNg"
      ],
      "total_count": "20",
      "failed_count": "1",
      "failed_testcase_name": [
        "PerformActionTest002"
      ]
    },
    {
      "test_suite_name": [
        "GesturesTestNg"
      ],
      "total_count": "274",
      "failed_count": "1",
      "failed_testcase_name": [
        "LongPressRecognizerTest001"
      ]
    },
    {
      "test_suite_name": [
        "RenderPropertyTestNg"
      ],
      "total_count": "65",
      "failed_count": "1",
      "failed_testcase_name": [
        "GraphicsPropertyTest001"
      ]
    },
    {
      "test_suite_name": [
        "RenderPropertyTestNg"
      ],
      "total_count": "9",
      "failed_count": "1",
      "failed_testcase_name": [
        "GraphicsPropertyTest001"
      ]
    }
  ]
}

XTS:(Pass/Fail/评估不涉及)Pass
输入图片说明
预测试:(Pass/Fail/评估不涉及)Pass

稳定性自检:

自检项 自检结果
涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发
成员变量进行赋值或创建需要排查并发
谨慎在lambda表达式中使用引用捕获
谨慎在未经拷贝的情况下使用外部传入的string、C字符串
map\vector\list\set等stl模板类使用时需要排查并发
谨慎考虑加锁范围
在IPC通信中谨慎使用同步通信方式
禁止传递this指针至其它模块或线程(特别是eventhandler任务)
禁止将外部传入的裸指针在内部直接构造智能指针
禁止多个独立创建的智能指针管理同一地址
禁止在析构函数中抛异步任务
禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁
禁止在对外接口中未经判空直接使用外部传入的指针
禁止接口返回局部变量引用
禁止在信号函数中加锁
禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作
禁止将同一个cpp编译在不同的so中
谨慎在lambda表达式中捕获FrameNode的强指针(RefPtr)避免循环引用导致内存泄漏
禁止在PostTask时捕获祼指针或引用,避免发生use-after-free导致crash

安全编码自检:

自检项 自检结果
裸指针避免通过隐式转换构造为sptr
json对象在取值之前必须先判断类型,避免类型不匹配
序列化时必须对传入的数组大小进行校验,避免出现超大数组
避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型
外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验
指针变量、表示资源描述符的变量、bool变量必须赋初值
readParcelable获取的对象使用前需要判空
分配和释放内存的函数需要成对出现
申请内存后异常退出前需要及时进行内存释放
内存申请前必须对内存大小进行合法性校验
内存分配后必须判断是否成功
禁止使用realloc、alloca函数
禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰
禁止打印内存地址
整数之间运算时必须严格检查,确保不会出现溢出、反转、除0
禁止对有符号整数进行位操作符运算
禁止对指针进行逻辑或位运算
循环次数如果收外部数据控制,需要检验其合法性
禁止使用内存操作类危险函数,需要使用安全函数
谨慎使用不可重入函数
必须检查安全函数的返回值,并进行正确处理
禁止仅通过TokenType类型判断绕过权限校验