1. 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
    • 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
  2. Sep 23, 2020
  3. Sep 21, 2020
  4. Sep 18, 2020
  5. Sep 11, 2020
  6. Sep 10, 2020
  7. Apr 21, 2020
  8. Apr 20, 2020
  9. Apr 17, 2020
  10. Apr 16, 2020
  11. Apr 10, 2020
  12. Mar 30, 2020
  13. Mar 27, 2020
  14. Mar 10, 2020
  15. Mar 04, 2020
  16. Feb 28, 2020
  17. Feb 27, 2020
  18. Feb 26, 2020
  19. Feb 25, 2020
  20. Feb 20, 2020
  21. Feb 17, 2020