commit | 22086cb4488d1b6c761e24f1d0ad9f9a85a0ff8e | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue Aug 07 03:14:41 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue Aug 07 03:14:41 2012 +0400 |
tree | 87fce6a2160a4e4afc984e2064a8e4dadcdc0be0 | |
parent | f802781e10ee66f0ac05ddcad2ba57817f9c873d [diff] |
vzlist: fix a segfault when using --json If the list of CTs is long enough, vzlist segfaults. This was caused by p_buf overrun in PRINT_STR_FIELD, which is checked for in print_one_ve() which is never called in json mode. Fix PRINT_STR_FIELD to not print to p_buf in json case. Signed-off-by: Kir Kolyshkin <kir@openvz.org>