chiark / gitweb /
log: pass the correct length to vsnprintf (#6168)
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 22 Jun 2017 01:10:29 +0000 (04:10 +0300)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
commit31d11b97deec83cdb064c36d9b46353a4092e1b4
tree725b0b2328d2fe04865b87c754f485b09c3397f6
parentd491da529c3a8f4951221f154d389026be04b432
log: pass the correct length to vsnprintf (#6168)

This prevents log_object_internalv from corrupting the stack.
Closes #6147.

Many thanks to Walter Doekes for the code review.
src/basic/log.c