任务单 #46527

off by one buffer overflow

开放日期: 2023-01-17 06:09 最后更新: 2023-03-21 08:38

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

任务单历史 (3/8 Histories)

2023-01-17 06:09 Updated by: mortmann
  • New Ticket "off by one buffer overflow" created
2023-01-17 06:21 Updated by: cazfi
评论

Reply To mortmann

and the following statement is always TRUE and can therefore be removed:

More than that, the entire real_activities array can be removed now that there's no non-real activities (holes) in the activities enum. I just didn't do it in at the same commit as removal of those non-real activities.

As for the reported bug, is it present in older branches too? (Likely so, don't think the code has changed)

2023-03-18 12:33 Updated by: cazfi
评论

Reply To cazfi

As for the reported bug, is it present in older branches too? (Likely so, don't think the code has changed)

No that I looked at it; yes and no. Older branches avoid actual over-boundaries write by luck. As they have also dummy activities included in the ACTIVITY_LAST count used in determining the size of the target array.

2023-03-18 12:33 Updated by: cazfi
  • 里程碑 Update from (无) to 3.0.7 (关闭)
  • 组件 Update from (无) to General
2023-03-18 12:45 Updated by: cazfi
2023-03-18 12:56 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
2023-03-21 08:38 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名