[lxc-devel] [lxc/lxc] 4e3124: python3: Fix crashes in snapshot()

GitHub noreply at github.com
Mon Jun 9 19:24:27 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 4e31246a25d29db0c554ae2f6b34fc19b8fcdefd
      https://github.com/lxc/lxc/commit/4e31246a25d29db0c554ae2f6b34fc19b8fcdefd
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-06-09 (Mon, 09 Jun 2014)

  Changed paths:
    M src/python-lxc/examples/api_test.py
    M src/python-lxc/lxc.c

  Log Message:
  -----------
  python3: Fix crashes in snapshot()

This makes sure all PyObject structs are always initialized to NULL,
this will fix issues such as (issue #239).

Also add a snapshot/list/restore testcase to the python3 api test code.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>




More information about the lxc-devel mailing list