8000 Fix code scanning alert by Spacetown · Pull Request #933 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix code scanning alert #933

New issue 8000

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
merged 2 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Bug fixes and small improvements:
- Fix display filename in HTML report. (:issue:`920`)
- Fix bundle of standalone executable with Python 3.12. (:issue:`924`)
- Fix merging of function coverage data. (:issue:`925`)
- Fix inefficient regular expression. (:issue:`933`, :security_issue:`1`)


Documentation:

Expand Down
8 changes: 7 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,10 @@
# -- Options for extlinks extension ------------------------------------------

# see http://www.sphinx-doc.org/en/master/ext/extlinks.html
extlinks = {"issue": ("https://github.com/gcovr/gcovr/issues/%s", "#%s")}
extlinks = {
"issue": ("https://github.com/gcovr/gcovr/issues/%s", "#%s"),
"security_issue": (
"https://github.com/gcovr/gcovr/security/code-scanning/%s",
"Code scanning alert #%s",
),
}
2 changes: 1 addition & 1 deletion gcovr/decision_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
_CPP_STYLE_COMMENT_PATTERN = re.compile(r"//.*?$")
_WHITESPACE_PATTERN = re.compile(r"\s+")

_ONE_LINE_BRANCH = re.compile(r"^[^;]+{(?:.*;)*.*}$")
_ONE_LINE_BRANCH = re.compile(r"^[^;]+{(?:[^;]+;)*.*}$")

# helper functions

Expand Down
Loading
0