diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-06 15:04:18 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-06 15:04:18 +0100 |
commit | 9603c69e65841fe9727a5ec2b87ca42dc4ac11bb (patch) | |
tree | 9a94c726552c6d674aba8a31810159d443d31449 /tools/libxc/xc_core.c | |
parent | 67c831978886860f6337c3db8ffceca63edb6945 (diff) | |
download | xen-9603c69e65841fe9727a5ec2b87ca42dc4ac11bb.tar.gz xen-9603c69e65841fe9727a5ec2b87ca42dc4ac11bb.tar.bz2 xen-9603c69e65841fe9727a5ec2b87ca42dc4ac11bb.zip |
libxc: Verify Magic number when reading dump
The xen core files record a magic number,
but when they are loaded it isn't checked.
This patch resolves this.
Signed-Off-By: Horms <horms@verge.net.au>
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r-- | tools/libxc/xc_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 0c763bbf8f..34c6d16a8c 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -61,7 +61,7 @@ xc_domain_dumpcore(int xc_handle, nr_pages = info.nr_pages; - header.xch_magic = 0xF00FEBED; + header.xch_magic = XC_CORE_MAGIC; header.xch_nr_vcpus = nr_vcpus; header.xch_nr_pages = nr_pages; header.xch_ctxt_offset = sizeof(struct xc_core_header); |