]> sourceware.org Git - lvm2.git/commit
cmirrord: fix stack smashing
authorFerenc Wágner <wferi@niif.hu>
Wed, 8 Jul 2015 12:41:25 +0000 (14:41 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Thu, 20 Aug 2015 17:06:47 +0000 (19:06 +0200)
commit1ea1cb6dc972868d89ff17cb03f65ce3088009b3
tree59cd5bcbe4b8d077968ce369b64a00472a82c1a4
parent8821cc416e8a295f47c49cad060727a69769eaf5
cmirrord: fix stack smashing

With clusters larger than 3 nodes, the 32-byte debug buffer in
cpg_join_callback() is too small to contain all the node IDs, because
32-bit identifiers are generally rendered in 10 decimal digits.  No fixed
size is good in all cases, but this is conditionally logged debug info,
so we can simply truncate it.  Double the size, nevertheless.
daemons/cmirrord/cluster.c
This page took 0.036277 seconds and 5 git commands to generate.