summaryrefslogtreecommitdiff
path: root/src/socket-proxy
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-25 14:00:39 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-26 19:45:07 -0500
commitea5cc2a8f65535a9b3f8ba39a8df13a0c770f41d (patch)
treed1944bd6ac10dcb5a55da5ac997de5c3eeb5c241 /src/socket-proxy
parenta6a73a10e813d8ced0b4ae0da4d2b3fe9f00120b (diff)
coredump: do not try to access unitialized CONTEXT_COMM field
Most of the fields in the context array come from the kernel (passed through argv), but two are special: comm and exe. We allocate them ourselves. We forgot to initialize context[CONTEXT_COMM] with the value we allocated (introduced in 9aa820231414baa28e6bf02a033932cb69ff6b8b). To simplify things, just set context[CONTEXT_COMM] and context[CONTEXT_EXE], and free those two fields at the end. Fixes #5442.
Diffstat (limited to 'src/socket-proxy')
0 files changed, 0 insertions, 0 deletions