35 Star 173 Fork 710

OpenHarmony / arkcompiler_ets_runtime

 / 详情

string.substr 和string.substring IR化逻辑处理错误

已完成
缺陷
创建于  
2024-06-21 15:54

【模块名_概率】简要描述:
string.substr 和string.substring IR化逻辑处理错误
【环境信息】:

  • 网络环境
  • 硬件开发板型号
  • 软件版本信息或tag节点
  • 测试环境
  • 其他

【预置条件】:

【测试步骤】:
const abc_str = "abc";
const negativeHeapNumber = -1 * 232;
const positiveHeapNumber = 2
32;
print(abc_str.substring(positiveHeapNumber))
print(abc_str.substring(negativeHeapNumber, positiveHeapNumber))
print(abc_str.substring(-abc_str.length, positiveHeapNumber))
print(abc_str.substring(0, positiveHeapNumber))
print(abc_str.substring(-2, positiveHeapNumber))
print(abc_str.substring(-1, positiveHeapNumber))
【预期结果】:

abc
abc
abc
abc
abc
【实际结果】:

abc

【恢复手段】:

【出现概率】:问题出现次数/实际测试次数
10/10
【定位信息】:

    1. Log、截图、多媒体文件等,所有和问题有关的信息:

评论 (1)

zhangyouyou 创建了缺陷

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @weng-changcheng @gonggong @孙哲 @Gargoyle.h @chuning1988 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @weng-changcheng @gonggong @孙哲 @Gargoyle.h @chuning1988 for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签
zhangyouyou 修改了标题
zhangyouyou 修改了描述
zhangyouyou 通过openharmony/arkcompiler_ets_runtime Pull Request !7883任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
1
https://gitee.com/openharmony/arkcompiler_ets_runtime.git
git@gitee.com:openharmony/arkcompiler_ets_runtime.git
openharmony
arkcompiler_ets_runtime
arkcompiler_ets_runtime

搜索帮助

344bd9b3 5694891 D2dac590 5694891