Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fixing bug with String deserialization where Strings weren't properly… #8

Merged
merged 1 commit into from
May 2, 2018

Conversation

mew2057
Copy link
Contributor

@mew2057 mew2057 commented May 1, 2018

… nulled.

Fixing a defect were bad buffers result in a segmentation fault due to improper string initialization.

Copy link
Contributor

@besawn besawn left a comment

Choose a reason for hiding this comment

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

Should UNPACK_STRING_FIXED be modified in the same way as UNPACK_STRING?

@mew2057
Copy link
Contributor Author

mew2057 commented May 1, 2018

@besawn No, because we don't perform a malloc on fixed strings and as such no free occurs on them. The problem with regular strings was the free was hitting uninitialized strings and attempting the free resulting in the segmentation fault.

@mew2057
Copy link
Contributor Author

mew2057 commented May 2, 2018

Talked with @besawn, I think it's appropriate to make a story working on a regression/unit test for the serialization engine to cover future segmentation faults.

@besawn besawn closed this May 2, 2018
@besawn besawn reopened this May 2, 2018
@besawn besawn merged commit 0c00e50 into IBM:master May 2, 2018
@mew2057 mew2057 deleted the serialization-buffer-overflow-fix branch May 2, 2018 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants