summaryrefslogtreecommitdiffstats
path: root/python/run-python-tests
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-02-23 19:08:41 +0000
committerRichard Jones <rjones@redhat.com>2010-02-23 19:17:40 +0000
commitc9d5cd059c45fd3aa6d16b3ba185d7cb3a08de9e (patch)
tree52466a1e19b8bcf04127c35ca8f8890b365ec84b /python/run-python-tests
parentd25b8f213fd4b09d67a94d068ed269f5c1b83954 (diff)
downloadhivex-c9d5cd059c45fd3aa6d16b3ba185d7cb3a08de9e.tar.gz
hivex-c9d5cd059c45fd3aa6d16b3ba185d7cb3a08de9e.tar.xz
hivex-c9d5cd059c45fd3aa6d16b3ba185d7cb3a08de9e.zip
hivex: Fix allocations that may move C heap buffer.
When heavily extending existing hive files, the malloc-allocated in-memory copy of the hive may be moved when we reallocate it (to increase its size). However we didn't adjust existing pointers to cope with this, so sometimes you could get a segfault. This patch fixes the issue by adjusting pointers as necessary after calling (directly or indirectly) to the allocate_block function. With this patch I was able to allocate 10,000's of blocks in a deeply nested hive structure without any problems being reported by valgrind.
Diffstat (limited to 'python/run-python-tests')
0 files changed, 0 insertions, 0 deletions