yisier / nps

在 0.26.10 版本的基础上修改而来的
https://ehang.io/nps/documents
GNU General Public License v3.0
1.8k stars 219 forks source link

linux386版本npc在iOS的iSH虚拟机里运行出现index out of range错误 #146

Closed tinyluck closed 1 month ago

tinyluck commented 5 months ago

Describe the bug linux386版本npc在iOS的iSH虚拟机里运行出现index out of range错误

To Reproduce Steps to reproduce the behavior:

  1. 在iOS的iSH虚拟机里运行linux386版本npc
  2. 报错panic: runtime error: index out of range [5] with length 5

Expected behavior 期望能正常运行

Screenshots or logs panic: runtime error: index out of range [5] with length 5

Client (please complete the following information):

Additional context 是gopsutil的bug,已在v3.23.10修复。本项目使用的版本是v3.21.3。期望能够更新。 v3.23.10 @shirou shirou released this Nov 1, 2023 What's Changed cpu fix(linux): validate cpu fields length before accessing index by @JanDeDobbeleer in https://github.com/shirou/gopsutil/pull/1544

yisier commented 1 month ago

已修复