search for: efree

Displaying 3 results from an estimated 3 matches for "efree".

Did you mean: free
2015 Feb 10
4
[PATCH 1/4] php: fix invalid memory access with OptString
OptString maps to a "s!" argument, which makes zend_parse_parameters not touch the variables (char* and length) when NULL is passed as parameter. Hence, set both to NULL/0, and check for non-NULL char* variable before checking its length. --- generator/php.ml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/generator/php.ml b/generator/php.ml index
2016 Apr 11
1
[PATCH] RFC: php: support PHP 7
...926ac4f..5f06c0f 100644 --- a/generator/php.ml +++ b/generator/php.ml @@ -93,6 +93,32 @@ and generate_php_c () = static int res_guestfs_h; +#if ZEND_MODULE_API_NO >= 20151012 +# define GUESTFS_RETURN_STRING(x, duplicate) \\ + do { if (duplicate) RETURN_STRING(x) else { RETVAL_STRING(x); efree ((char *)x); return; } } while (0) +# define guestfs_add_assoc_string(arg, key, str, dup) \\ + add_assoc_string(arg, key, str) +# define guestfs_add_assoc_stringl(arg, key, str, len, dup) \\ + add_assoc_stringl(arg, key, str, len) +# define guestfs_add_next_index_string(retval, val, x) \\ +...
2004 Mar 04
1
2.2.7 and getting old SID
I am trying to migrate from a Samba 2.2.7 PDC to Samba 3, and I need the old domain SID. 2.2.7 doe not have the net tools, so net getlocalsid will not work, the 2.2.7 version of smbpasswd does not have the -X option (which www.richardsharpe.com talked about) and tdbdump dumps the SID in HEX, but I don't think I can use that (and I have been unsuccessful in converting to ASCII)... Is there any