git.annexia.org
/
hivex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d75a2
)
ocaml: Fix segfault in Hivex.value_value binding.
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 16 Dec 2010 13:41:59 +0000
(13:41 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 16 Dec 2010 13:41:59 +0000
(13:41 +0000)
generator/generator.ml
patch
|
blob
|
history
diff --git
a/generator/generator.ml
b/generator/generator.ml
index
37e5b5c
..
7c43f1f
100755
(executable)
--- a/
generator/generator.ml
+++ b/
generator/generator.ml
@@
-1873,7
+1873,7
@@
copy_type_value (const char *r, size_t len, hive_type t)
Store_field (rv, 0, v);
v = caml_alloc_string (len);
memcpy (String_val (v), r, len);
- caml_modify (&Field (rv, 1),
len
);
+ caml_modify (&Field (rv, 1),
v
);
CAMLreturn (rv);
}