-
Notifications
You must be signed in to change notification settings - Fork 52
[201_72] 修复导言区调用未定义颜色变量导致软件崩溃 #2753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+96
−2
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| <TMU|<tuple|1.1.0|2026.1.2>> | ||
|
|
||
| <style|<tuple|generic|chinese|table-captions-above|number-europe|preview-ref>> | ||
|
|
||
| <\body> | ||
| <\show-preamble> | ||
| <assign|theorem|<with|color|<value|backcolor>|>> | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
|
|
||
| \; | ||
| </show-preamble> | ||
|
|
||
| <\ignore> | ||
| \; | ||
| </ignore> | ||
| </body> | ||
|
|
||
| <\initial> | ||
| <\collection> | ||
| <associate|page-medium|paper> | ||
| <associate|page-screen-margin|false> | ||
| </collection> | ||
| </initial> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # 201_72 修复导言区调用未定义颜色变量导致软件崩溃 | ||
|
|
||
| ## 如何测试 | ||
| 1. 打开 TeXmacs/tests/tmu/201_72.tmu 文件 | ||
| 2. `Ctrl+Shift+p`进入导言区 | ||
| 3. 鼠标光标移动到`backcolor`后回车应该不会导致软件闪退问题 | ||
|
|
||
| ## 2026/2/4 | ||
| ### What | ||
| 1. 在 `src/Graphics/Renderer/brush.cpp` 的 `make_brush(tree p, int a)` 中增加非法 pattern 输入校验,遇到异常复合树时回退为 `no_brush`。 | ||
| 2. 在 `src/Graphics/Renderer/brush.cpp` 的 `get_pattern_data(...)` 中增加结构和 URL 健壮性检查,非法输入回退到安全默认值,避免继续解包。 | ||
|
|
||
| ### Why | ||
| `<value|backcolor>` 在变量未定义时会产生异常值,该值进入颜色渲染链路后被误当作 pattern 解包。 | ||
| MuPDF 路径中会继续读取非法 pattern 图像信息(日志可见 `bad image size for '{}'`),最终触发 SIGSEGV。 | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
通过 LABEL来看
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L(p)