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 an issue where smspsec might dereference null #948

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

eivindjahren
Copy link
Collaborator

No description provided.

lib/resdata/rd_smspec.cpp Outdated Show resolved Hide resolved
@eivindjahren eivindjahren force-pushed the attempt_fix branch 2 times, most recently from 293beb8 to 59d846b Compare January 25, 2024 12:44
@berland berland linked an issue Jan 25, 2024 that may be closed by this pull request
@eivindjahren eivindjahren force-pushed the attempt_fix branch 7 times, most recently from 7a807c0 to 7739362 Compare January 25, 2024 14:59
Copy link
Contributor

@berland berland left a comment

Choose a reason for hiding this comment

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

🐛

@berland
Copy link
Contributor

berland commented Jan 25, 2024

amend commit message to explain the consequences of this fix

The number of blocks of 8 character strings in the RESTART keyword can
now be more than 9, and in any case the file could always have the
length set to something larger, leading to stack corruption.

Also fixed that it was always assumed that the restart filename
was relative.

Before, many restart cases would have been ignored because the file
was too long (or incorrectly assumed to be relative). Now, restart
data will most likely be included, which could lead to unexpected changed
behavior.
@eivindjahren
Copy link
Collaborator Author

amend commit message to explain the consequences of this fix

Done

@eivindjahren eivindjahren merged commit 6c5dc79 into main Jan 25, 2024
31 of 33 checks passed
@eivindjahren eivindjahren deleted the attempt_fix branch January 25, 2024 15:20
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.

Crash in summary files from Eclipse 2023, double free or corruption
2 participants