commit | d881d25cf5bc2fafbbfb383a475278977e1bd55a | [log] [tgz] |
---|---|---|
author | Ricky Zhou <rickyz@chromium.org> | Thu Oct 13 10:37:28 2016 -0700 |
committer | Kees Cook <keescook@chromium.org> | Tue Nov 01 08:58:17 2016 -0700 |
tree | 59831f33afc57b1979b4869f93944abb6febc446 | |
parent | 1ff120504f8c322a03fbce035d99e29e741da725 [diff] |
samples/seccomp: Support programs with >256 instructions Previously, the program size was incorrectly truncated to 8 bits, resulting in broken labels in large programs. Also changes the jump resolution loop to not rely on undefined behavior (making a pointer point before the filter array). Signed-off-by: Ricky Zhou <rickyz@chromium.org> Signed-off-by: Kees Cook <keescook@chromium.org>