Skip to content
Snippets Groups Projects
  1. Jul 25, 2015
    • Arseny Kapoulkine's avatar
      tests: Fix test allocator to provide fundamental alignment · e8fdd130
      Arseny Kapoulkine authored
      Previously test allocator only guaranteed alignment enough for a pointer.
      
      On some platforms (e.g. SPARC) double has to be aligned to 8 bytes but pointers
      can have a size of 4 bytes. This commit increases allocation header to fix that.
      
      In practical terms the allocation header is now always 8 bytes.
      e8fdd130
    • Arseny Kapoulkine's avatar
      tests: Only enable page heap on x86/x64 · a562bf6d
      Arseny Kapoulkine authored
      This fixes tests in PUGIXML_NO_XPATH mode on SPARC64 (#48).
      
      SPARC does not allow unaligned accesses - e.g. you can't read an unaligned int.
      Normally pugixml does not perform unaligned integer/pointer accesses, but page
      heap can allocate blocks that are not aligned so that we can detect a single-
      byte read/write overrun.
      
      Additionally, the hardcoded page size we're currently using is really system
      specific - on SPARC the page size can be 8 Kb instead of 4 Kb so mprotect can
      fail.
      a562bf6d
  2. May 13, 2015
  3. Apr 16, 2015
  4. Mar 21, 2015
  5. Mar 02, 2015
  6. Oct 21, 2014
  7. Oct 01, 2014
  8. Feb 19, 2012
  9. Dec 19, 2010
  10. Aug 30, 2010
  11. Aug 03, 2010
  12. Jul 19, 2010
  13. Jul 15, 2010
  14. May 06, 2010
Loading