Skip to content
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

fix: There are issues with searching for special characters and numbers based on keywords in the file content #2290

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

liyigang1
Copy link
Contributor

@liyigang1 liyigang1 commented Sep 14, 2024

Modify the word segmentation when establishing an index

Log: There are issues with searching for special characters and numbers based on keywords in the file content
Bug: https://pms.uniontech.com/bug-view-270025.html https://pms.uniontech.com/bug-view-273767.html

…rs based on keywords in the file content

Modify the word segmentation when establishing an index

Log: There are issues with searching for special characters and numbers based on keywords in the file content
Bug: https://pms.uniontech.com/bug-view-270025.html
@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • dealKeywordEx函数中,对keyword字符串进行遍历时,没有考虑到字符串可能为空的情况,可能会导致数组越界访问。
  • dealKeywordEx函数中的循环会对每个字符插入转义字符,但如果原始字符串已经是转义字符,则可能会导致转义字符被重复插入。
  • FullTextSearcher::search方法中调用dealKeywordEx函数后没有对返回值进行处理,如果dealKeywordEx返回的字符串为空,可能会导致后续的搜索操作出错。

是否建议立即修改:

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: liyigang1, max-lvs

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@liyigang1
Copy link
Contributor Author

/merge

@deepin-bot deepin-bot bot merged commit 8af991e into linuxdeepin:release/eagle Sep 19, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants