sandbox: Fix uninitialized data in non-jumping bpf instructions
commit90b32ca95485409ba5646c96a4ec0aa4b6216aee
authorleecam <leecam@chromium.org>
Fri, 3 Oct 2014 16:19:18 +0000 (3 09:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Oct 2014 16:19:58 +0000 (3 16:19 +0000)
tree4dbccf37c2a2e6c91bb1f808249971dbdf00f0e7
parentebfe54f3477971bd2574d3247aa0d300fb358f12
sandbox: Fix uninitialized data in non-jumping bpf instructions

Non-jumping BPF instructions ignore the jt/jf fields and should
be set to zero. This CL corrects an issues where these fields
were left uninitialized, resulting in non-zero values.

BUG=406116
TEST=sandbox_linux_unittests Linux & Android

Review URL: https://codereview.chromium.org/607473002

Cr-Commit-Position: refs/heads/master@{#298039}
sandbox/linux/seccomp-bpf/instruction.h
sandbox/linux/seccomp-bpf/verifier.cc