vnotex / vnotex/vnote

正则表达式匹配 [空格]* 导致崩溃

Open
#568 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
13k
Forks
1.3k
Avg merge
14h 3m
Merged PRs (30d)
3

Description

OS Version (操作系统): Windows

VNote Version (VNote版本): Latest 2.2 (最新)

Symptoms (表现):
正则表达式下查找时,如果匹配模式不小心写成是可以匹配任意长度字段的形式(并且没有加上其它限制),将导致编辑器卡死;
任意长度任意字符的匹配,在没有限制条件的情况下,不应当进行

How to Repro (如何复现):
查找:" *"(去掉引号)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

No source file or test is named. Reproduce the freeze in the Windows build by searching with the regular expression " *", then trace the editor's regular-expression search path. Done means an unrestricted pattern no longer locks the editor and is handled according to the issue's stated safety requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.