1. 25 Feb, 2010 1 commit
    • Allison Karlitskaya's avatar
      GVariantTypeInfo: fix thread safety bug · a3c7406c
      Allison Karlitskaya authored
      Issue caught by Michael Meeks.  This patch based on his.
      GVariantTypeInfo was dropping the reference count on the TypeInfo
      structure before removing it from the hash table.  This means that
      another thread could come along and grab the value from the hash table
      in the meantime.
      Solve this by holding the lock on the table before dropping the
      Also: move the hash table initialisation inside of the lock to remove
      the standard double-initialisation race plus a more insidious issue
      caused by the fact that we free the hash table once it becomes empty.
  2. 07 Feb, 2010 3 commits
  3. 04 Feb, 2010 1 commit
    • Allison Karlitskaya's avatar
      GVariantTypeInfo tweaks · 6d6d7a8b
      Allison Karlitskaya authored
        1) always emit ending type FIXED for fixed sized items
          The serialiser needs to know if it dealing with a fixed sized item
          in case the serialised data is corrupt and the item has the wrong
        2) add a macro that will be used by test cases to check that all
           memory has been freed.
  4. 03 Feb, 2010 1 commit
  5. 31 Jan, 2010 1 commit