Upgrade to 2.20.0 for fix CVE-2023-39929

(cherry picked from commit c22ac0379d9bc9b515b188f660889d77d0af31eb)
This commit is contained in:
starlet-dx 2024-06-04 10:11:24 +08:00 committed by openeuler-sync-bot
parent 918291f200
commit a404a7a27c
4 changed files with 12 additions and 40 deletions

View File

@ -1,34 +0,0 @@
From cab05fcf1c28838cbc9e59b41061024dd6e01928 Mon Sep 17 00:00:00 2001
From: He Junyan <junyan.he@intel.com>
Date: Sat, 18 Sep 2021 18:20:41 +0800
Subject: [PATCH] Add the missing trace log for the VA encoder API.
Signed-off-by: He Junyan <junyan.he@intel.com>
---
va/va_trace.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/va/va_trace.c b/va/va_trace.c
index da62221..6426ca8 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -3315,6 +3315,7 @@ static void va_TraceVAEncSliceParameterBufferH264(
va_TraceMsg(trace_ctx, "\tdelta_pic_order_cnt[1] = %d\n", p->delta_pic_order_cnt[1]);
va_TraceMsg(trace_ctx, "\tdirect_spatial_mv_pred_flag = %d\n", p->direct_spatial_mv_pred_flag);
va_TraceMsg(trace_ctx, "\tnum_ref_idx_active_override_flag = %d\n", p->num_ref_idx_active_override_flag);
+ va_TraceMsg(trace_ctx, "\tnum_ref_idx_l0_active_minus1 = %d\n", p->num_ref_idx_l0_active_minus1);
va_TraceMsg(trace_ctx, "\tnum_ref_idx_l1_active_minus1 = %d\n", p->num_ref_idx_l1_active_minus1);
va_TraceMsg(trace_ctx, "\tslice_beta_offset_div2 = %d\n", p->slice_beta_offset_div2);
@@ -3468,6 +3469,8 @@ static void va_TraceVAEncMiscParameterBuffer(
va_TraceMsg(trace_ctx, "\trc_flags.frame_tolerance_mode = %d\n", p->rc_flags.bits.frame_tolerance_mode);
va_TraceMsg(trace_ctx, "\tICQ_quality_factor = %d\n", p->ICQ_quality_factor);
va_TraceMsg(trace_ctx, "\tmax_qp = %d\n", p->max_qp);
+ va_TraceMsg(trace_ctx, "\tquality_factor = %d\n", p->quality_factor);
+ va_TraceMsg(trace_ctx, "\ttarget_frame_size = %d\n", p->target_frame_size);
break;
}
case VAEncMiscParameterTypeMaxSliceSize: {
--
2.37.3.windows.1

Binary file not shown.

BIN
libva-2.20.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,19 +1,17 @@
Name: libva
Version: 2.13.0
Release: 2
Version: 2.20.0
Release: 1
Summary: Libva is an implementation for VA-API (Video Acceleration API)
License: MIT
URL: https://github.com/intel/libva
Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: libtool libudev-devel libXext-devel libXfixes-devel libdrm-devel git
BuildRequires: libtool libudev-devel libXext-devel libXfixes-devel libdrm-devel
BuildRequires: libpciaccess-devel mesa-libEGL-devel mesa-libGL-devel mesa-libGLES-devel
BuildRequires: wayland-devel pkgconfig(wayland-client) pkgconfig(wayland-scanner)
Requires: mesa-dri-filesystem
Patch6000: backport-0001-Add-the-missing-trace-log-for-the-VA-encoder-API.patch
%description
Libva is an implementation for VA-API, which is an open-source library and API
specification, provides access to graphics hardware acceleration capabilities
@ -33,7 +31,7 @@ developing applications that use %{name}.
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%autosetup -n %{name}-%{version} -p1
autoreconf -vif
@ -68,6 +66,14 @@ autoreconf -vif
%changelog
* Tue Jun 04 2024 yaoxin <yao_xin001@hoperun.com> - 2.20.0-1
- Upgrade to 2.20.0
- Fix CVE-2023-39929
- Fix minor issue about printf data type and value range
- av1: Revise offsets comments for av1 encode
- jpeg: add support for crop and partial decode
- Drop no longer applicable vaGetDriverNames check
* Mon Jan 9 2023 mengwenhua<mengwenhua@xfusion.com> - 2.13.0-2
- Add the missing trace log for the VA encoder API.