summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* maint: remove rule that generated po/POTFILES.inJim Meyering2011-06-281-10/+0
| | | | | * Makefile.am (all-local): Remove rule. It would put many files in po/POTFILES.in that contain no translatable diagnostic.
* build: update gnulib submodule to latestJim Meyering2011-06-282-0/+2
|
* maint: remove spaces before TABJim Meyering2011-06-281-1/+1
| | | | * perl/typemap: Remove spaces-before-TAB.
* maint: avoid using test's -a and -o operators; they are not portableJim Meyering2011-06-283-9/+11
| | | | | | * configure.ac: use "test C1 && test C2", not "test C1 -a C2"; * autogen.sh: Likewise. * sh/hivexget: Use "test C1 || test C2", not "test C1 -o C2"
* maint: use "test x = x", not "test x == x"Jim Meyering2011-06-281-1/+1
| | | | * autogen.sh: Using "test x = x" is more portable.
* maint: remove trailing blanksJim Meyering2011-06-283-13/+13
|
* maint: remove now-unnecessary #ifdef HAVE_BYTESWAP_H guardJim Meyering2011-06-282-2/+1
| | | | | | * lib/byte_conversions.h: Remove #ifdef HAVE_BYTESWAP_H guard. With gnulib, we're guaranteed to have that header file. * bootstrap (modules): Use the byteswap module.
* maint: remove definition of O_CLOEXEC, ...Jim Meyering2011-06-282-4/+1
| | | | | | | | now that we're using gnulib's fcntl module, which ensures that we use a conforming <fcntl.h>. * lib/hivex.c (O_CLOEXEC): Remove definition. * bootstrap (modules): Add fcntl for its guaranteed definition of O_CLOEXEC.
* maint: normalize to exactly one newline at EOFJim Meyering2011-06-287-7/+5
| | | | | | | | | | * .tx/config: Remove trailing empty line. * images/Makefile.am: Likewise. * sh/example1: Add newline at EOF. * sh/example2: Likewise. * sh/example3: Likewise. * sh/example4: Likewise. * sh/example5: Likewise.
* maint: update po/POTFILES.inJim Meyering2011-06-281-7/+0
| | | | | * po/POTFILES.in: Reduce list of files with translatable messages to match reality.
* maint: remove definitions of PRId64 and PRIu64, ...Jim Meyering2011-06-282-9/+3
| | | | | | | | | now that we're using gnulib's inttypes module, which ensures that we use a conforming <inttypes.h>. * bootstrap (modules): Add inttypes. * generator/generator.ml (generate_perl_xs) [PRId64, PRIu64]: Don't define these symbols. Instead, ... Include <inttypes.h>.
* maint: remove unnecessary test-before-freeJim Meyering2011-06-281-2/+1
| | | | | * lib/hivex.c (hivex_node_set_value): Remove unnecessary test-before-free.
* ocaml: Really fix 'make install' rule.Richard W.M. Jones2011-05-171-8/+8
| | | | | This fixes commit b8ad15031cacf910634b4f4f4632232949c4acd2 and commit f408b757b1d75429fae5fa7630a4fc5451844de7.
* ocaml: Set package name when installing native bindings.Richard W.M. Jones2011-05-171-0/+1
| | | | This fixes commit b8ad15031cacf910634b4f4f4632232949c4acd2.
* Version 1.2.7.1.2.7Richard W.M. Jones2011-05-1716-17/+17
|
* Update gnulib to latest version.Richard W.M. Jones2011-05-171-0/+0
|
* hivexregedit: Add --unsafe-printable-strings option.Richard W.M. Jones2011-05-172-11/+77
|
* hivex_root: Return errno == HIVEX_NO_KEY when root key is missing.Richard W.M. Jones2011-05-132-2/+9
| | | | | | | | | | Previously we returned errno == ENOKEY. However this was an unfortunate choice of error code since it is not defined in POSIX. As a result it is missing on several platforms. HIVEX_NO_KEY is defined as ENOKEY on platforms where this symbol exists (thus maintaining backwards ABI compatibility), and defined as another POSIX error code otherwise.
* hivex: Fix install target for systems without native OCaml compilerHilko Bengen2011-05-131-1/+6
| | | | | | | | | | | | | ,---- | ocamlfind install \ | -ldconf ignore -destdir /build/buildd-hivex_1.2.6-1-ia64-iqcb38/hivex-1.2.6/debian/tmp/usr/lib/ocaml \ | hivex \ | META *.so *.a *.cma *.cmx *.cmxa *.cmi *.mli | Installed /build/buildd-hivex_1.2.6-1-ia64-iqcb38/hivex-1.2.6/debian/tmp/usr/lib/ocaml/hivex/hivex.mli | Installed /build/buildd-hivex_1.2.6-1-ia64-iqcb38/hivex-1.2.6/debian/tmp/usr/lib/ocaml/hivex/hivex.cmi | ocamlfind: *.cmxa: No such file or directory | make[4]: *** [install-data-hook] Error 2 `----
* hivex: Remove python bytecode on "make clean"Hilko Bengen2011-05-131-0/+2
|
* ocaml: Use libtool to get correct library to build OCaml tests.Richard W.M. Jones2011-05-121-32/+5
| | | | | | | See this thread: https://www.redhat.com/archives/libguestfs/2011-May/thread.html#00015 Thanks to Hilko Bengen and Török Edwin for coming up with this fix.
* Version 1.2.6.1.2.6Richard W.M. Jones2011-05-1216-17/+17
|
* build: Workaround broken libtool.Richard W.M. Jones2011-05-121-0/+3
| | | | | | | | | Same as this error: https://www.redhat.com/archives/libguestfs/2011-April/msg00042.html https://www.redhat.com/archives/libguestfs/2011-May/msg00041.html We don't know why latest libtool is so obviously broken, but this works around the problem.
* bootstrap: Force gnulib-tool --libtool option.Richard W.M. Jones2011-05-121-0/+1
| | | | | This forces the recent gnulib to generate a libgnu.la file. Otherwise it appears to default to --no-libtool which doesn't generate one.
* configure: AC_PROG_LIBTOOL -> AM_PROG_LIBTOOL.Richard W.M. Jones2011-05-121-1/+1
| | | | Unclear if this makes any difference.
* Update gnulib.Richard W.M. Jones2011-05-122-0/+4
|
* hivex: Fix for endianess bug.Hilko Bengen2011-05-121-1/+1
| | | | | | | | | | | | * Richard W.M. Jones: > > Both size_t and int are 32 bit values. An endianess issue, maybe? > I guess it might be. We're supposed to be doing le32toh / be32toh > everywhere as appropriate, but we might be missing one. The code is > mainly tested on little endian arches. Found it. Now "make check" completes successfully on Sparc and PowerPC.
* hivex: check for presence of OCaml native compilerHilko Bengen2011-05-122-1/+6
| | | | | | | Only compile bytecode otherwise, avoiding ocamlfind's helpful error message "ocamlfind: Not supported in your configuration: ocamlopt" (Successfully tested on Debian/unstable on alpha)
* hivex: Use OCaml bytecode compiler for caml_raise_with_args checkHilko Bengen2011-05-121-3/+3
| | | | | | | | | | | | | | | | | | | | On installations where no native OCaml compiler is available, the test program can't be compiled and so we get this message: ,---- | checking for function caml_raise_with_args... not found `---- This breaks building of the OCaml bindings. ,---- | gcc -std=gnu99 -I.. -I/usr/lib/ocaml -I../ocaml -I../lib -g -O2 -fPIC -Wall -c hivex_c.c | hivex_c.c:52: error: static declaration of 'caml_raise_with_args' follows non-static declaration | /usr/lib/ocaml/caml/fail.h:30: note: previous declaration of 'caml_raise_with_args' was here | make[2]: *** [hivex_c.o] Error 1 `---- (Successfully tested on Debian/unstable on alpha)
* configure: Use Python platform-dependent site-packages.Richard W.M. Jones2011-05-121-1/+1
| | | | This updates commit b808c875a34e62fcdf360534f923d6030590ff44.
* Use Python's distutils to determine include and site-packages directories.Hilko Bengen2011-05-091-34/+12
| | | | | | The code has been taken from specifically ac_python_devel.m4 published at <http://ac-archive.sf.net/>, it has turned out to be less error-prone on my Debian system.
* Don't rely on OCaml native compiler for testsHilko Bengen2011-05-091-15/+15
| | | | | This should make it possible to build useful OCaml bindings on architectures other than i386 and amd64 (Debian bug #589809).
* Include generator in the tarball.Richard W.M. Jones2011-04-283-2/+23
|
* hivex/python fix for i386 integer size issueHilko Bengen2011-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, While working on Debian packages of hivex 1.2.5, I came across a test failure for the Python bindings with Python 2.7 on the i386 architecture. (The tests ran fine on amd64.) ,---- | $ make -C python check | make[1]: Entering directory `/home/bengen/src/deb/hivex/hivex.git/python' | 010-import.py | 020-open.py | 021-close.py | 200-write.py | python: hivex-py.c:52: get_handle: Assertion `obj' failed. `---- I narrowed this down to hivex-py.c:py_hivex_node_add_child(): The call ,---- | PyArg_ParseTuple (args, (char *) "OLs:hivex_node_add_child", | &py_h, &parent, &name) `---- results in `py_h' set to NULL, though Python's documentation claims that this cannot happen. I think this happens because `parent' is declared a `long int', but "L" in the format string corresponds to a `long long'. On amd64, they have the same size, but on i386 they don't, so the PyObject pointer is written to the wrong address. Please consider applying the patch below which just changes the format string. After regenerating hivex-py.c, I have successfully tested the 1.2.5 code base on both architectures. Cheers, -Hilko
* maint: Split long lines.Jim Meyering2011-04-131-52/+96
| | | | * lib/hivex.c: Split lines longer than 80 columns.
* Version 1.2.5.1.2.5Richard W.M. Jones2011-04-1316-123/+140
| | | | Updated PO files.
* Remove no longer used internal function utf16_string_len_in_bytes.Richard W.M. Jones2011-04-131-16/+2
|
* hivex_value_multiple_strings: Don't read uninitialized data.Richard W.M. Jones2011-04-131-1/+2
| | | | | | | | | If hivex_value_multiple_strings was given a value which had an odd length or if the data in the value was unterminated, hivex_value_multiple_strings could read uninitialized data. Potentially (although very unlikely) this could cause a non-exploitable segfault in the calling program.
* Handle odd-length "UTF16" strings.Richard W.M. Jones2011-04-131-1/+1
| | | | | If the length of the buffer is not even, then this would read a byte of uninitialized data. Fix the length check to avoid this.
* Return real length of buffer from hivex_value_value.Richard W.M. Jones2011-04-131-0/+4
| | | | | | | | | | | | | | | | | In real registries, often the length declared in the header does not match the length of the block. In this case hivex_value_value would only allocate a value with a size which is the shorter of the two length values, which is correct and safe. However user code could do: buf = hivex_value_value (h, v, &t, &len); memcpy (somewhere, buf, len); which would copy uninitialized data. If hivex_value_value truncates a value like this, we also need to return the shorter length to the user as well.
* Really fix the case where a UTF-16 string contains junk after the string.Richard W.M. Jones2011-04-131-1/+1
| | | | | | The previous commit b71b88f588f8660935a7d462e97b84aa2d669249 attempted to fix this, but got the test the wrong way round so the length would never be shorter.
* Fix use-after-free in hivex_close.Richard W.M. Jones2011-04-121-3/+3
| | | | Found using valgrind.
* Pull translations from Transifex.Richard W.M. Jones2011-04-0217-13575/+885
|
* debian: Fix python test script for bash.Richard W.M. Jones2011-04-011-3/+4
|
* Import hivex into transifex.Richard W.M. Jones2011-03-071-0/+8
| | | | http://www.transifex.net/projects/p/hivex/
* Refresh documentation.Richard W.M. Jones2010-12-235-37/+62
|
* ocaml: Fix segfault in Hivex.value_value binding.Richard W.M. Jones2010-12-161-1/+1
|
* Version 1.2.4.1.2.4Richard W.M. Jones2010-12-0215-105/+132
|
* Python bindings.Richard W.M. Jones2010-11-289-60/+739
|
* Version 1.2.3.1.2.3Richard Jones2010-08-2713-14/+14
|