log: Check message buffer length to avoid overflow
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Tue, 3 Feb 2015 11:10:52 +0000 (12:10 +0100)
committerNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Tue, 3 Feb 2015 11:10:52 +0000 (12:10 +0100)
commit94b88276fbdc14e945a5f37618052725e78a7521
tree217049d7aaf2d580f24f15e67612b773f7980b0a
parent0824dd5325f31d2fd2f4e59e4d7c4f5762e8e601
log: Check message buffer length to avoid overflow

Check that adding strlcpy result to the message length didn't exceed
size of the message buffer to avoid underflow in calculating remaining
size and overflowing the buffer.
src/main/log.c