Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Detect and return errors from Open in case of malformed data #2
Conversation
mvo5
merged commit 3e62d7f
into
mvo5:master
May 16, 2017
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
zyga
referenced this pull request
in snapcore/snapd
May 16, 2017
Merged
vendor,partition: fix panics from uenv #3325
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedMay 16, 2017
The Open code relied on parseData which would panic if the data did
not conform to the key=value syntax. Since panicking is may not be
expected by the caller return an error instead.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com