]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix OpenBSD asynclook lock free that gets used later (fix test code).
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 24 Feb 2016 14:52:28 +0000 (14:52 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 24 Feb 2016 14:52:28 +0000 (14:52 +0000)
git-svn-id: file:///svn/unbound/trunk@3638 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/asynclook.c

index b7153f6df022981d38d234d941031c332879ab1d..79931efe924d34d1411e4f6faca330281717ba80 100644 (file)
@@ -1,3 +1,6 @@
+24 February 2016: Wouter
+       - Fix OpenBSD asynclook lock free that gets used later (fix test code).
+
 23 February 2016: Wouter
        - ub_ctx_set_stub() function for libunbound to config stub zones.
        - sorted ubsyms.def file with exported libunbound functions.
index 534489735bb2cc301168e0e3e975321f76bcecef..43e1dccf5b7845328a28c9122bc3f4f7a68fd1b3 100644 (file)
@@ -335,12 +335,17 @@ ext_thread(void* arg)
                r = ub_wait(inf->ctx);
                checkerr("ub_ctx_wait", r);
        }
+       /* if these locks are destroyed, or if the async_ids is freed, then
+          a use-after-free happens in another thread.
+          The allocation is only part of this test, though. */
+       /*
        if(async_ids) {
                for(i=0; i<inf->numq; i++) {
                        lock_basic_destroy(&async_ids[i].lock);
                }
        }
        free(async_ids);
+       */
        
        return NULL;
 }