File libaom-CVE-2023-6879.patch of Package libaom.32013
Index: libaom-3.2.0/av1/common/thread_common.c
===================================================================
--- libaom-3.2.0.orig/av1/common/thread_common.c
+++ libaom-3.2.0/av1/common/thread_common.c
@@ -646,7 +646,8 @@ void av1_loop_restoration_dealloc(AV1LrS
aom_free(lr_sync->job_queue);
if (lr_sync->lrworkerdata) {
- for (int worker_idx = 0; worker_idx < num_workers - 1; worker_idx++) {
+ for (int worker_idx = 0; worker_idx < lr_sync->num_workers - 1;
+ worker_idx++) {
LRWorkerData *const workerdata_data =
lr_sync->lrworkerdata + worker_idx;