1. Jan 28, 2022
  2. Jan 26, 2022
  3. Sep 21, 2021
  4. Sep 20, 2021
  5. Jul 07, 2021
  6. Jul 06, 2021
  7. Jul 05, 2021
  8. Jul 02, 2021
  9. Jul 01, 2021
  10. Jun 30, 2021
    • Igor Chorążewicz's avatar
      self_relative_ptr: fix UB when adding non-zero offset to possibly null pointer · 90c94281
      Igor Chorążewicz authored
      Cast 'this' to integer type instead of casting to pointer type.
      
      Original implementation resulted in the following error for
      self_relative_ptr_atomic test:
      
      "runtime error: pointer index expression with base 0x7ffc7773e7c0
      overflowed to 0xfffffffffffffffe"
      90c94281
    • 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