diff options
| author | Ian Jackson <ian.jackson@eu.citrix.com> | 2013-06-14 16:43:16 +0100 |
|---|---|---|
| committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-06-14 16:43:16 +0100 |
| commit | 8c738fa5c1f3cfcd935b6191b3526f7ac8b2a5bd (patch) | |
| tree | 8f276fbf0ea165bc8041e982a8d8b891b32b37c3 /tools/lib/sys_string.h | |
| parent | a672da4b2d58ef12be9d7407160e9fb43cac75d9 (diff) | |
| download | xen-8c738fa5c1f3cfcd935b6191b3526f7ac8b2a5bd.tar.gz xen-8c738fa5c1f3cfcd935b6191b3526f7ac8b2a5bd.tar.bz2 xen-8c738fa5c1f3cfcd935b6191b3526f7ac8b2a5bd.zip | |
libxc: Fix range checking in xc_dom_pfn_to_ptr etc.
* Ensure that xc_dom_pfn_to_ptr (when called with count==0) does not
return a previously-allocated block which is entirely before the
requested pfn (!)
* Provide a version of xc_dom_pfn_to_ptr, xc_dom_pfn_to_ptr_retcount,
which provides the length of the mapped region via an out parameter.
* Change xc_dom_vaddr_to_ptr to always provide the length of the
mapped region and change the call site in xc_dom_binloader.c to
check it. The call site in xc_dom_load_elf_symtab will be corrected
in a forthcoming patch, and for now ignores the returned length.
This is part of the fix to a security issue, XSA-55.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/lib/sys_string.h')
0 files changed, 0 insertions, 0 deletions
