-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
specconv: fix null spec.Process making runc panic #1826
specconv: fix null spec.Process making runc panic #1826
Conversation
@dongsupark many thanks for your comments~ #1726 does more checking, but it seems the author quits on the PR. Should we continue on this PR? |
What did I quit on? I'm not aware of any outstanding change requests short of this thread, where I'm waiting on maintainer follow-up. |
@wking sorry for that~ so let's wait for your pr~ |
needs rebase |
aad422f
to
60473a5
Compare
60473a5
to
30b301b
Compare
Thanks for remainding~ @AkihiroSuda The part of spec_linux.go is already fix by 16d55f1, but the test in spec_linux_test.go may still has its value. Merge it if you think it is valuable 😄 |
Signed-off-by: l00397676 <[email protected]>
30b301b
to
62cfad9
Compare
ping @opencontainers/runc-maintainers |
Process
ofSpec struct
is a pointer:When calling
CreateLibcontainerConfig()
withopts.Spec.Process: nil
, runc will panic.I added a new test case
TestNullProcess
inlibcontainer/specconv
, it will failed with:So I wrote this PR.
Please help to review and share your comments.
Signed-off-by: Jingxiao Lu [email protected]