shithub: treason

Download patch

ref: 6d7bf12a173f770c54c290c608a6f80bd0d0c83e
parent: 190e3848a9ecf54d0b1a5863d1ed653f0fa24ae8
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Sep 9 10:26:04 EDT 2020

fix a race condition

--- a/dec_av1.c
+++ b/dec_av1.c
@@ -129,9 +129,9 @@
 		free(a);
 		return -1;
 	}
-	proccreate(decode, d, 16384);
 	d->aux = a;
 	d->s->ops.alloc = allocdata;
+	proccreate(decode, d, 16384);
 
 	return 0;
 }