search for: kiy

Displaying 5 results from an estimated 5 matches for "kiy".

Did you mean: key
2023 Feb 14
2
[PATCH 2/2] python: Use bytes instead of str for event callback buffer
...e939e03..bf639b5789 100644 --- a/python/handle.c +++ b/python/handle.c @@ -131,7 +131,7 @@ guestfs_int_py_event_callback_wrapper (guestfs_h *g, } /* XXX As with Perl we don't pass the guestfs_h handle here. */ - args = Py_BuildValue ("(Kis#O)", + args = Py_BuildValue ("(Kiy#O)", (unsigned PY_LONG_LONG) event, event_handle, buf, buf_len, py_array); if (args == NULL) { -- 2.39.0
2023 Feb 17
3
python: Avoid leaking py_array and py_args in event callbacks
Version 1 was here: https://listman.redhat.com/archives/libguestfs/2023-February/030732.html Following Eric's suggestion here: https://listman.redhat.com/archives/libguestfs/2023-February/030746.html let's decrement the reference of py_array right after adding it to the args. (This works even if args fails to be built). However the other part of Eric's suggestion is wrong as
2023 Feb 17
2
[PATCH v3 0/2] python: Avoid leaking py_array and py_args in event callbacks
Version 1 was here: https://listman.redhat.com/archives/libguestfs/2023-February/030732.html (Ignore version 2 which had a mistake, this is version 3) Following Eric's suggestion here: https://listman.redhat.com/archives/libguestfs/2023-February/030746.html let's decrement the reference of py_array right after adding it to the args. (This works even if args fails to be built).
2023 Feb 14
2
[PATCH 1/2] python: Avoid crash if callback parameters cannot be built
In the case that building the parameters to the Python event callback fails, args was returned as NULL. We immediately tried to call Py_INCREF on this which crashed. Returning NULL means the Python function threw an exception, so print the exception and return (there is no way to return an error here - the event is lost). Reported-by: Yonatan Shtarkman See:
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...~SX615GMOa>Sd}eygwBm3u~uyB;>!FNix|7#x`$ zHDuB4tsBwlf!y(Cs!Fw^W0qXfbZFkon7avgle3#55@*;uq?G*8G3SlxU;L7r{D(5Q z5iK%0y)GP5aWkT0q<#BhKjKT{f{P==_pa)8zG7DM*xdADWi|jYucyXHq2*ln+Ja at n zPe%6sef^;cTQ1y=Jd)V413)i at IOGwr{n+Uo+uDo4Pp3?owR-iwIWfy#Z}_z`J at WXb zycLGUKpF^$d7hPek)KGvW^$mvRXXk4DWj%Gev|HcKIYAbLkE5~&f}+mKcx`^kG}aH zSXTl>UwyhM^Y=gzd3N!~Ya8RYEtoP(zk2uQzefM``c`Sg7Qqa>A9SLTRJ}SkrRiYg z$OCnos;-WIx~%VGT_4*=gF7BQ4%5#{W*wLu+5OzE>n~Lw&Hdb9-#%EsxZmx_FG8gA zVS1VnHFERUt_1_)COlj|X`OXI^nAhjmnC=B&mG`nh9%Z5P>t%4?%kftMz$zDd(Y3` z{q{}OQ}5ByZcks_yy8)*bJ=hI at XDd^QQ?zE)PVMJ+fey&amp...