weixin_39779975 2020-11-22 04:26
浏览 0

agent: fix crashers if API requests empty

Check the validity of the AddARPNeighbors, UpdateInterface and UpdateRoutes, APIs before using to avoid crashing the agent.

Fixes: #949, #950, #955.

Signed-off-by: James O. D. Hunt

该提问来源于开源项目:kata-containers/kata-containers

  • 写回答

5条回答 默认 最新

  • weixin_39779975 2020-11-22 04:26
    关注

    fwiw, I've reviewed all the API calls: these three calls are the only one that are passed a pointer value which wasn't being checked. All the others are passed a struct, and hence are safer ;) Some struct elements themselves are pointers, but those are all checked (except for the string_user elements in CreateContainer and ExecProcess, but those are unused).

    评论

报告相同问题?