X Tutup
Skip to content

Fix UB related to allocation/free mismatch#4867

Merged
fluffyfreak merged 1 commit intopioneerspacesim:masterfrom
dodomorandi:fix-gasgiant-ub
Apr 27, 2020
Merged

Fix UB related to allocation/free mismatch#4867
fluffyfreak merged 1 commit intopioneerspacesim:masterfrom
dodomorandi:fix-gasgiant-ub

Conversation

@dodomorandi
Copy link
Contributor

Each buf contains an array of Colors, therefore the type of T in unique_ptr<T> must be Color[] instead of Color.

Copy link
Contributor

@fluffyfreak fluffyfreak left a comment

Choose a reason for hiding this comment

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

Ooh, good catch, my mistake!

@fluffyfreak fluffyfreak merged commit a736e77 into pioneerspacesim:master Apr 27, 2020
@dodomorandi dodomorandi deleted the fix-gasgiant-ub branch April 27, 2020 13:19
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.

2 participants

X Tutup