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: handling nullptr in Game::internalMoveItem and other functions #737

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

dudantas
Copy link
Contributor

@dudantas dudantas commented Jan 4, 2023

Description

This pull request adds nullptr handling to the fromCylinder and toCylinder parameters in the Game::internalMoveItem function and others functions. This prevents crashes due to invalid memory access when these parameters are nullptr. Additionally, an error log has been added to make it easier to track potential issues.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@sonarcloud
Copy link

sonarcloud bot commented Jan 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dudantas dudantas merged commit 4e642ed into opentibiabr:main Jan 4, 2023
dudantas added a commit to dudantas/canary that referenced this pull request Feb 7, 2023
…opentibiabr#737)

Added nullptr handling to the fromCylinder and toCylinder parameters in the Game::internalMoveItem function and others functions. This prevents crashes due to invalid memory access when these parameters are nullptr. Additionally, an error log has been added to make it easier to track potential issues.
jacksonie pushed a commit to jacksonie/canary that referenced this pull request Feb 17, 2023
…opentibiabr#737)

Added nullptr handling to the fromCylinder and toCylinder parameters in the Game::internalMoveItem function and others functions. This prevents crashes due to invalid memory access when these parameters are nullptr. Additionally, an error log has been added to make it easier to track potential issues.
luan pushed a commit that referenced this pull request Jul 11, 2023
…#737)

Added nullptr handling to the fromCylinder and toCylinder parameters in the Game::internalMoveItem function and others functions. This prevents crashes due to invalid memory access when these parameters are nullptr. Additionally, an error log has been added to make it easier to track potential issues.
@dudantas dudantas changed the title [Bug] handling nullptr in Game::internalMoveItem and others functions fix: handling nullptr in Game::internalMoveItem and other functions Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants