Displaying 6 results from an estimated 6 matches for "newsvpvn_utf8".
2014 May 13
2
new warnings in hivex-1.3.10
hivex-1.3.10 does not pass the sles11sp3 post-build-checks anymore,
1.3.8 was still ok. The relevant output is:
...
[ 57s] Hivex.xs: In function 'XS_Win__Hivex_node_name':
[ 57s] Hivex.xs:236: warning: implicit declaration of function 'newSVpvn_utf8'
[ 57s] Hivex.xs:236: warning: assignment makes pointer from integer without a cast
[ 57s] Hivex.xs: In function 'XS_Win__Hivex_value_key':
[ 57s] Hivex.xs:384: warning: assignment makes pointer from integer without a cast
[ 57s] Hivex.xs: In function 'XS_Win__Hivex_value_da...
2014 Jan 13
1
Re: [PATCH 5/7] perl: Properly decode node names, value keys from UTF-8
...pr " croak (\"%%s: %%s\", \"%s\", strerror (errno));\n"
> name;
> if f_len_exists name then
> - pr " RETVAL = newSVpvn (r, hivex_%s_len (%s));\n"
> + pr " RETVAL = newSVpvn_utf8 (r, hivex_%s_len (%s), 1);\n"
> name (String.concat ", " c_params)
> else
> pr " RETVAL = newSVpv (r, 0);\n";
> --
> 1.8.5.2
>
> _______________________________________________
> Libguestfs maili...
2014 Jan 10
0
[PATCH 5/7] perl: Properly decode node names, value keys from UTF-8
...7 @@ DESTROY (h)
pr " croak (\"%%s: %%s\", \"%s\", strerror (errno));\n"
name;
if f_len_exists name then
- pr " RETVAL = newSVpvn (r, hivex_%s_len (%s));\n"
+ pr " RETVAL = newSVpvn_utf8 (r, hivex_%s_len (%s), 1);\n"
name (String.concat ", " c_params)
else
pr " RETVAL = newSVpv (r, 0);\n";
--
1.8.5.2
2014 Jan 10
14
[PATCH 1/7] Add a minimal hive with "special" keys and values
---
images/README | 14 ++++++++++++
images/mkzero/Makefile | 9 ++++++++
images/mkzero/mkzero.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
images/special | Bin 0 -> 8192 bytes
4 files changed, 82 insertions(+)
create mode 100644 images/mkzero/Makefile
create mode 100644 images/mkzero/mkzero.c
create mode 100644 images/special
diff --git a/images/README
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi,
This patch series is based on a prior patch[1], splitting off changes as
requested and incorporating feedback from Richard Jones. It introduces type
validation to avoid segmentation faults (instead, it reports an exception) and
fixes handling of the bytes type in Python 3.
Major changes since that series:
- Drop newly introduced support for integer types for DWORD/QWORDS
- Reject Unicode