1. 15 Nov, 2019 3 commits
  2. 14 Nov, 2019 4 commits
    • Philip Withnall's avatar
      Merge branch 'fix-utf8-pointer-test' into 'master' · e825a988
      Philip Withnall authored
      gunicode: Fix an UB in gutf8.c and utf8-pointer test
      
      Closes #1917
      
      See merge request !1199
      e825a988
    • nightuser's avatar
      gunicode: Fix UB in gutf8.c and utf8-pointer test · b555119c
      nightuser authored
      In glib/gutf8.c there was an UB in function g_utf8_find_prev_char when
      p == str. In this case we substract one from p and now p points to a
      location outside of the boundary of str. It's a UB by the standard.
      Since this function are meant to be fast, we don't check the boundary
      conditions.
      
      Fix glib/tests/utf8-pointer test. It failed due to the UB described
      above and aggressive optimisation when -O2 and LTO are enabled. Some
      compilers (e.g. GCC with major version >= 8) create an optimised version
      of g_utf8_find_prev_char with the first argument fixed and stored
      somewhere else (with a different pointer). It can be solved with either
      marking str as volatile or creating a copy of str in memory. We choose
      the second approach since it's more explicit solution.
      
      Add additional checks to glib/tests/utf8-pointer test.
      
      Closes #1917
      b555119c
    • Sebastian Dröge's avatar
      Merge branch '1750-more-atomic-intrinsics' into 'master' · 4dcad56f
      Sebastian Dröge authored
      gatomic: Use new __atomic_*() intrinsics for all atomic operations
      
      Closes #1750
      
      See merge request !1123
      4dcad56f
    • Michael Catanzaro's avatar
      gtlsconnection: clarify handshake() documentation · b75dd395
      Michael Catanzaro authored
      This tries to clarify some confusing aspects of the
      g_tls_connection_handshake() that can trip up experienced developers.
      b75dd395
  3. 11 Nov, 2019 3 commits
  4. 08 Nov, 2019 1 commit
    • Thomas Haller's avatar
      gparam: fix memory leak in g_param_value_defaults() · 3a9bdcf7
      Thomas Haller authored
      We cannot  just call
      
          G_PARAM_SPEC_GET_CLASS (pspec)->value_set_default (pspec, &dflt_value);
      
      without initializing the GValue first. It would call
      param_string_set_default(), which would set the pointer value
      to a cloned string (which later never gets released, because
      the GValue is not known to hold a string).
      
      Fixes: 6ad799ac
      3a9bdcf7
  5. 07 Nov, 2019 1 commit
  6. 06 Nov, 2019 1 commit
  7. 05 Nov, 2019 12 commits
  8. 04 Nov, 2019 14 commits
  9. 31 Oct, 2019 1 commit