Tencent / Tencent/libpag

4.4.35 替换图片,越界,老版本没问题

Open
#2,989 0 comments 0 reactions 1 assignee View on GitHub

@kevingpqi123 is already working on this.

Since Aug 28, 2025.

Dominant language
HTML
Stars
5.8k
Forks
531
Avg merge
8d 55m
Merged PRs (30d)
17

Description

【版本信息】

4.4.35

【平台信息】

iOS 原生

  • (void)replaceImage:(int)editableImageIndex data:(PAGImage*)value;

我帮你们测试下, >=4.4.25 版本都是数组越界; 建议你们editableImageIndex >= 1 ,做下测试可以复现(pag 包我认为你们内部有的, 前提 numImages >= 1)。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.