Skip to content

Commit

Permalink
Removed the fclose() use-after-free regression test from single-threa…
Browse files Browse the repository at this point in the history
…ded builds
  • Loading branch information
dimkr committed Jan 15, 2018
1 parent b9c14db commit e76e644
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/b6b_test_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ int main()
assert(interp.fg->_->s[i] == 0);
b6b_interp_destroy(&interp);

#ifdef B6B_HAVE_OFFLOAD_THREAD
/* regression test: use-after-free in b6b_threaded() during cleanup, when
* all threads have been freed while the global frame still holds a
* reference to a file and its fclose() is offloaded */
Expand All @@ -207,6 +208,7 @@ int main()
"{$global a [$open /dev/null]} {$spawn {{$exit}}} {$loop {{$yield}}}",
67) == B6B_EXIT);
b6b_interp_destroy(&interp);
#endif

return EXIT_SUCCESS;
}

0 comments on commit e76e644

Please sign in to comment.