#646·genoffice

pptx: 经典图表 readPoints 必须限制敌方 ptCount/稀疏索引

作者: aniruddhaadak80创建于 2026年9月21日更新于 2026年9月22日

问题

readPoints 从一个未封顶的 ptCount 整数中分配了一个新的 Array(max(n, pts.length)),并使用无限的 idx 将 out[idx] 写入,因此一个敌对图表会卡死或 OOMs 文件通过一个 1e9 稀疏数组打开。

内容来源: genspark-ai/genoffice