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

Use single decoder instance for one stream #596

Merged
merged 1 commit into from
Feb 28, 2016

Conversation

hushan
Copy link
Contributor

@hushan hushan commented Feb 27, 2016

Sometimes when the process finishes, runc fails with error like:

error: [10] System error: invalid character 'a' looking for beginning of value

This is because part of encoded string was read and abandoned when decoding a smaller type.

This fix will avoid part of the stream be read and abandomed by using a single instance of Decoder
for the stream.

Signed-off-by: Hushan Jia hushan.jia@gmail.com

This will avoid part of the stream be read and abandomed
and resulting decoding errors.

Signed-off-by: Hushan Jia <hushan.jia@gmail.com>
@LK4D4
Copy link
Contributor

LK4D4 commented Feb 27, 2016

Not first time we hit that. Change makes sense
LGTM

@hqhq
Copy link
Contributor

hqhq commented Feb 27, 2016

LGTM

1 similar comment
@dqminh
Copy link
Contributor

dqminh commented Feb 27, 2016

LGTM

@LK4D4
Copy link
Contributor

LK4D4 commented Feb 28, 2016

@hqhq @dqminh guys, you're maintainers :) you can merge if your LGTM is second.

LK4D4 added a commit that referenced this pull request Feb 28, 2016
Use single decoder instance for one stream
@LK4D4 LK4D4 merged commit d282265 into opencontainers:master Feb 28, 2016
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
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.

5 participants