Fix #10509 (donate_cpu_lib.py: fixed stupid error in lookup of signal in internal error) (#3503)

This commit is contained in:
Oliver Stöneberg 2021-10-13 14:51:56 +02:00 committed by GitHub
parent 28955cea85
commit 48d5f47e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import shlex
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
# changes)
CLIENT_VERSION = "1.3.14"
CLIENT_VERSION = "1.3.15"
# Timeout for analysis with Cppcheck in seconds
CPPCHECK_TIMEOUT = 30 * 60
@ -340,7 +340,7 @@ def scan_package(work_path, cppcheck_path, jobs, libraries):
if 'Child process crashed with signal' in ie_line:
sig_file = ie_line.split(':')[0]
sig_msg = 'signal '
sig_pos = stderr.find(sig_msg)
sig_pos = ie_line.find(sig_msg)
if sig_pos != -1:
sig_start_pos = sig_pos + len(sig_msg)
sig_num = int(ie_line[sig_start_pos:ie_line.find(' ', sig_start_pos)])