aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-11-28 16:25:45 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-11-28 19:15:28 +0100
commit1808de66ce1b8db0fc76b5b6398e3386ca2e7ad6 (patch)
tree5dfb75e113f3f1cbc04b59ffd0bee45de400f26a /executor/executor_linux.cc
parente338ada43ca8221b09fe8d2ae66c5d95f29611d6 (diff)
prog: repair arrays/buffers with incorrect size in Deserialize
For string[N] we successfully deserialize a string of any length. Similarly for a fixed-size array[T, N] we successfully deserialize an array of any size. Such programs later crash in foreachSubargOffset because static size Type.Size() does not match what we've calculated iterating over fields. The crash happens only in SerializeForExec in syz-fuzzer, which is especially bad. Fix this from both sides: 1. Validate sizes of arrays/buffers in Validate. 2. Repair incorrect sizes in Deserialize.
Diffstat (limited to 'executor/executor_linux.cc')
0 files changed, 0 insertions, 0 deletions