search for: moderatevaluepar

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

2011 Dec 08
0
[hivex] [PATCH 1/8] Add test hive and generator script
...n/env python +import os +import hivex + +srcdir = os.environ.get("srcdir") +if not srcdir: + srcdir = "." + +h = hivex.Hivex ("%s/../images/minimal" % srcdir, + write = True) +assert h + +root = h.root () +assert root + +h.node_add_child (root, "ModerateValueParent") + +mvp = h.node_get_child (root, "ModerateValueParent") +assert mvp + +moderate_value = "0123456789ABCDEF" + +values = [ + { "key": "3Bytes", "t": 3, "value": moderate_value[:3] }, + { "key": "16Bytes",...
2011 Dec 08
0
[hivex] [PATCH 7/8] ruby: Add unit test for new RLenValue type
...details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +# Demonstrate value_data_cell_offset by looking at the value data at +# "\$$$PROTO.HIV\ModerateValueParent\33Bytes", verified to be at file +# offset 8680 (0x21e8) of the hive rlenvalue_test_hive. The returned +# length and offset for this value cell should be 37 bytes, position +# 8712. + +require 'test/unit' +$:.unshift(File::join(File::dirname(__FILE__), "..", "lib&quo...
2011 Dec 08
0
[hivex] [PATCH 4/8] ocaml: Add unit test for new RLenValue type
...* + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + *) + +(* Demonstrate value_data_cell_offset by looking at the value data at + * "\$$$PROTO.HIV\ModerateValueParent\33Bytes", verified to be at file + * offset 8680 (0x21e8) of the hive rlenvalue_test_hive. The returned + * length and offset for this value cell should be 37 bytes, position + * 8712. + *) + +open Unix +open Printf +let (//) = Filename.concat + +let () = + let h = Hivex.open_file "....
2014 Jan 10
0
[PATCH 6/7] python: Python 3 no longer recognizes long integers
...nvalue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/t/120-rlenvalue.py b/python/t/120-rlenvalue.py index ebc48f5..a9b2129 100644 --- a/python/t/120-rlenvalue.py +++ b/python/t/120-rlenvalue.py @@ -38,5 +38,5 @@ moderate_value_node = h.node_get_child (root, "ModerateValueParent") moderate_value_value = h.node_get_value (moderate_value_node, "33Bytes") r = h.value_data_cell_offset (moderate_value_value) -assert r[0] == 37L -assert r[1] == 8712L +assert r[0] == 37 +assert r[1] == 8712 -- 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