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 a few use-after-free bugs #2116

Merged
merged 4 commits into from Feb 13, 2024

Conversation

TheKodeToad
Copy link
Member

No description provided.

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
@TheKodeToad TheKodeToad added the bug Something isn't working label Feb 12, 2024
@TheKodeToad TheKodeToad added this to the 8.1 milestone Feb 12, 2024
Exception(const QString& message) : std::exception(), m_message(message) { qCritical() << "Exception:" << message; }
Exception(const Exception& other) : std::exception(), m_message(other.cause()) {}
Exception(const QString& message) : std::exception(), m_message(message.toUtf8()) { qCritical() << "Exception:" << message; }
Exception(const Exception& other) : std::exception(), m_message(other.m_message) {}

Check warning

Code scanning / CodeQL

Inconsistent definition of copy constructor and assignment ('Rule of Two') Warning

No matching copy assignment operator in class Exception. It is good practice to match a copy constructor with a copy assignment operator.
Copy link
Member

@Trial97 Trial97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
but do not forget to run clang-format(see the failing checks)

launcher/Exception.h Outdated Show resolved Hide resolved
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
@Scrumplex Scrumplex merged commit b02eef9 into PrismLauncher:develop Feb 13, 2024
31 checks passed
@Scrumplex Scrumplex added the backport release-8.x Backport PR automatically label Feb 13, 2024
Copy link
Contributor

Git push to origin failed for release-8.x with exitcode 1

Copy link
Contributor

Successfully created backport PR for release-8.x:

@Scrumplex Scrumplex added the changelog:fixed A PR that appears under "Fixed" in the changelog label Mar 3, 2024
Copy link
Contributor

github-actions bot commented Mar 3, 2024

Backport failed for release-8.x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-8.x
git worktree add -d .worktree/backport-2116-to-release-8.x origin/release-8.x
cd .worktree/backport-2116-to-release-8.x
git switch --create backport-2116-to-release-8.x
git cherry-pick -x ded77e61832661557a6985d9aa587f3b5d1e1f87 ff989b4305d5ae4578d2154afe27ce6bf72cadaf 7f4c74ffbe413fcf191842606c12056fbc6493c7 8cf2a04f317c59920e8af90d7e16fea872b2c122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-8.x Backport PR automatically bug Something isn't working changelog:fixed A PR that appears under "Fixed" in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants