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 Binary2Po converter not reading from the beginning of the stream #169

Merged
merged 2 commits into from Oct 3, 2021

Conversation

Kaplas80
Copy link
Contributor

@Kaplas80 Kaplas80 commented Oct 3, 2021

Description

Binary2Po doesn't check the stream position, so the conversion might fail even if the binary is a valid Po but the stream position is not 0.

This PR moves the stream position to the beginning before the conversion.

Example

The PR doen't change the way the converter is used.

@pleonex pleonex self-requested a review October 3, 2021 12:52
Copy link
Member

@pleonex pleonex left a comment

Choose a reason for hiding this comment

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

Perfect, thank!

@pleonex pleonex added the bug label Oct 3, 2021
@pleonex pleonex added this to the vNext milestone Oct 3, 2021
@pleonex pleonex merged commit 0c217ac into SceneGate:develop Oct 3, 2021
@Kaplas80 Kaplas80 deleted the fix/binary2po branch October 3, 2021 14:53
@pleonex pleonex changed the title Fix Binary2Po converter Fix Binary2Po converter not reading from the beginning of the stream May 18, 2022
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.

None yet

2 participants