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 possible (unlikely) nil pointer access in instance_test #595

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

Martin2112
Copy link
Contributor

ptypes.TimestampString() is nil safe but before that we convert it to a timestamp proto via a pointer that could be nil.

Would need to have bad test data to trigger it so not a major issue.

Checklist

ptypes.TimestampString() is nil safe but before that we convert it to a
timestamp proto via a pointer that could be nil.

Fix possible but unlikely crash in instance_test

Would need to have bad test data to trigger it so not a major issue.
@codecov
Copy link

codecov bot commented Aug 1, 2019

Codecov Report

Merging #595 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #595   +/-   ##
=======================================
  Coverage   71.74%   71.74%           
=======================================
  Files          90       90           
  Lines        9737     9737           
=======================================
  Hits         6986     6986           
  Misses       2261     2261           
  Partials      490      490

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f50c21...09e59be. Read the comment docs.

@Martin2112 Martin2112 merged commit e98f6fe into google:master Aug 2, 2019
@Martin2112 Martin2112 deleted the instance_test_nil branch August 2, 2019 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants