1. Jul 06, 2021
  2. Jul 05, 2021
  3. Jul 02, 2021
  4. Jul 01, 2021
  5. Jun 30, 2021
    • Igor Chorążewicz's avatar
      vector: fix referencing empty array · 44bab51a
      Igor Chorążewicz authored
      This fixes following tests under UBSAN:
      vector_modifiers_type_requirements_0_none
      vector_parameters_0_none
      
      They failed with following error message:
      
      "runtime error: reference binding to null pointer of type"
      
      This fix is continuation of 41ddc88a
      44bab51a
    • Igor Chorążewicz's avatar
      peristent_ptr: change ptr_offset_magic to be properly aligned · 1c37736e
      Igor Chorążewicz authored
      Casting unaligned ptr_offset_magic address to pointers is undefined
      behavior for types which require alignemnt > 1. It results in following
      error under UBSAN for ptr_0_none test:
      
      "runtime error: upcast of misaligned address 0x0000deadbeef for type 'C',
      which requires 8 byte alignment"
      
      Also, add test for offset calculation for objects with different
      alignment requirements.
      1c37736e
    • Lucas A. M. Magalhaes's avatar
      vector: Fix undefined behaviour on realloc · 41ddc88a
      Lucas A. M. Magalhaes authored
      
      
      On tests listed bellow the reserve method is being called before any
      allocation on the object therefore realloc being called without
      any previous allocation. Inside realloc _data is being used with the
      operator '[]', as it is nullptr at that moment it's an undefined
      behaviour.
      
      This patch simply returns a call to alloc if _data is nullptr.
      
      This tests fails on PowerPC with Segmentation Fault because of this
      issue:
      segment_vector_array_expsize_assign_exceptions_oom_0_none
      segment_vector_array_expsize_assign_exceptions_oom_0_memcheck
      segment_vector_array_expsize_capacity_exceptions_oom_0_none
      segment_vector_array_expsize_capacity_exceptions_oom_0_memcheck
      segment_vector_array_expsize_modifiers_exceptions_oom_0_none
      segment_vector_array_expsize_modifiers_exceptions_oom_0_memcheck
      segment_vector_vector_expsize_assign_exceptions_oom_0_none
      segment_vector_vector_expsize_assign_exceptions_oom_0_memcheck
      segment_vector_vector_expsize_capacity_exceptions_oom_0_none
      segment_vector_vector_expsize_capacity_exceptions_oom_0_memcheck
      segment_vector_vector_expsize_modifiers_exceptions_oom_0_none
      segment_vector_vector_expsize_modifiers_exceptions_oom_0_memcheck
      segment_vector_vector_fixedsize_assign_exceptions_oom_0_none
      segment_vector_vector_fixedsize_assign_exceptions_oom_0_memcheck
      
      Signed-off-by: default avatarLucas A. M. Magalhães <lamm@linux.ibm.com>
      41ddc88a
  6. Jun 29, 2021
  7. Jun 28, 2021
  8. Jun 21, 2021
  9. Nov 24, 2020
  10. Nov 23, 2020
  11. Nov 18, 2020
  12. Oct 08, 2020
  13. Sep 29, 2020
  14. Sep 28, 2020
  15. Sep 24, 2020
  16. Sep 23, 2020