Accepting request 1114589 from home:iznogood:branches:multimedia:libs
- Update to version 1.13.1: + Bug fixes: Fix to a crash related to VP9 encoding. https://crbug.com/1486441 (CVE-2023-5217) - Drop CVE-2023-5217.patch: Fixed upstream. OBS-URL: https://build.opensuse.org/request/show/1114589 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvpx?expand=0&rev=128
This commit is contained in:
parent
4ceee5f413
commit
85979ec44b
@ -1,103 +0,0 @@
|
|||||||
commit af6dedd715f4307669366944cca6e0417b290282
|
|
||||||
Author: James Zern <jzern@google.com>
|
|
||||||
Date: Mon Sep 25 18:53:41 2023 -0700
|
|
||||||
|
|
||||||
encode_api_test: add ConfigResizeChangeThreadCount
|
|
||||||
|
|
||||||
Update thread counts and resolution to ensure allocations are updated
|
|
||||||
correctly. VP8 is disabled to avoid a crash.
|
|
||||||
|
|
||||||
Bug: chromium:1486441
|
|
||||||
Change-Id: Ie89776d9818d27dc351eff298a44c699e850761b
|
|
||||||
|
|
||||||
Index: libvpx-1.13.0/test/encode_api_test.cc
|
|
||||||
===================================================================
|
|
||||||
--- libvpx-1.13.0.orig/test/encode_api_test.cc
|
|
||||||
+++ libvpx-1.13.0/test/encode_api_test.cc
|
|
||||||
@@ -304,7 +304,6 @@ TEST(EncodeAPI, SetRoi) {
|
|
||||||
|
|
||||||
void InitCodec(const vpx_codec_iface_t &iface, int width, int height,
|
|
||||||
vpx_codec_ctx_t *enc, vpx_codec_enc_cfg_t *cfg) {
|
|
||||||
- ASSERT_EQ(vpx_codec_enc_config_default(&iface, cfg, 0), VPX_CODEC_OK);
|
|
||||||
cfg->g_w = width;
|
|
||||||
cfg->g_h = height;
|
|
||||||
cfg->g_lag_in_frames = 0;
|
|
||||||
@@ -342,6 +341,7 @@ TEST(EncodeAPI, ConfigChangeThreadCount)
|
|
||||||
vpx_codec_ctx_t ctx = {};
|
|
||||||
} enc;
|
|
||||||
|
|
||||||
+ ASSERT_EQ(vpx_codec_enc_config_default(iface, &cfg, 0), VPX_CODEC_OK);
|
|
||||||
EXPECT_NO_FATAL_FAILURE(
|
|
||||||
InitCodec(*iface, kWidth, kHeight, &enc.ctx, &cfg));
|
|
||||||
if (IsVP9(iface)) {
|
|
||||||
@@ -353,6 +353,54 @@ TEST(EncodeAPI, ConfigChangeThreadCount)
|
|
||||||
|
|
||||||
for (const auto threads : { 1, 4, 8, 6, 2, 1 }) {
|
|
||||||
cfg.g_threads = threads;
|
|
||||||
+ EXPECT_NO_FATAL_FAILURE(EncodeWithConfig(cfg, &enc.ctx))
|
|
||||||
+ << "iteration: " << i << " threads: " << threads;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+TEST(EncodeAPI, ConfigResizeChangeThreadCount) {
|
|
||||||
+ constexpr int kInitWidth = 1024;
|
|
||||||
+ constexpr int kInitHeight = 1024;
|
|
||||||
+
|
|
||||||
+ for (const auto *iface : kCodecIfaces) {
|
|
||||||
+ SCOPED_TRACE(vpx_codec_iface_name(iface));
|
|
||||||
+ if (!IsVP9(iface)) {
|
|
||||||
+ GTEST_SKIP() << "TODO(https://crbug.com/1486441) remove this condition "
|
|
||||||
+ "after VP8 is fixed.";
|
|
||||||
+ }
|
|
||||||
+ for (int i = 0; i < (IsVP9(iface) ? 2 : 1); ++i) {
|
|
||||||
+ vpx_codec_enc_cfg_t cfg = {};
|
|
||||||
+ struct Encoder {
|
|
||||||
+ ~Encoder() { EXPECT_EQ(vpx_codec_destroy(&ctx), VPX_CODEC_OK); }
|
|
||||||
+ vpx_codec_ctx_t ctx = {};
|
|
||||||
+ } enc;
|
|
||||||
+
|
|
||||||
+ ASSERT_EQ(vpx_codec_enc_config_default(iface, &cfg, 0), VPX_CODEC_OK);
|
|
||||||
+ // Start in threaded mode to ensure resolution and thread related
|
|
||||||
+ // allocations are updated correctly across changes in resolution and
|
|
||||||
+ // thread counts. See https://crbug.com/1486441.
|
|
||||||
+ cfg.g_threads = 4;
|
|
||||||
+ EXPECT_NO_FATAL_FAILURE(
|
|
||||||
+ InitCodec(*iface, kInitWidth, kInitHeight, &enc.ctx, &cfg));
|
|
||||||
+ if (IsVP9(iface)) {
|
|
||||||
+ EXPECT_EQ(vpx_codec_control_(&enc.ctx, VP9E_SET_TILE_COLUMNS, 6),
|
|
||||||
+ VPX_CODEC_OK);
|
|
||||||
+ EXPECT_EQ(vpx_codec_control_(&enc.ctx, VP9E_SET_ROW_MT, i),
|
|
||||||
+ VPX_CODEC_OK);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ cfg.g_w = 1000;
|
|
||||||
+ cfg.g_h = 608;
|
|
||||||
+ EXPECT_EQ(vpx_codec_enc_config_set(&enc.ctx, &cfg), VPX_CODEC_OK)
|
|
||||||
+ << vpx_codec_error_detail(&enc.ctx);
|
|
||||||
+
|
|
||||||
+ cfg.g_w = 16;
|
|
||||||
+ cfg.g_h = 720;
|
|
||||||
+
|
|
||||||
+ for (const auto threads : { 1, 4, 8, 6, 2, 1 }) {
|
|
||||||
+ cfg.g_threads = threads;
|
|
||||||
EXPECT_NO_FATAL_FAILURE(EncodeWithConfig(cfg, &enc.ctx))
|
|
||||||
<< "iteration: " << i << " threads: " << threads;
|
|
||||||
}
|
|
||||||
Index: libvpx-1.13.0/vp8/encoder/onyx_if.c
|
|
||||||
===================================================================
|
|
||||||
--- libvpx-1.13.0.orig/vp8/encoder/onyx_if.c
|
|
||||||
+++ libvpx-1.13.0/vp8/encoder/onyx_if.c
|
|
||||||
@@ -1443,6 +1443,11 @@ void vp8_change_config(VP8_COMP *cpi, VP
|
|
||||||
last_h = cpi->oxcf.Height;
|
|
||||||
prev_number_of_layers = cpi->oxcf.number_of_layers;
|
|
||||||
|
|
||||||
+ if (cpi->initial_width) {
|
|
||||||
+ // TODO(https://crbug.com/1486441): Allow changing thread counts; the
|
|
||||||
+ // allocation is done once in vp8_create_compressor().
|
|
||||||
+ oxcf->multi_threaded = cpi->oxcf.multi_threaded;
|
|
||||||
+ }
|
|
||||||
cpi->oxcf = *oxcf;
|
|
||||||
|
|
||||||
switch (cpi->oxcf.Mode) {
|
|
2
_service
2
_service
@ -4,7 +4,7 @@
|
|||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="versionformat">@PARENT_TAG@</param>
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
<param name="versionrewrite-pattern">v(.*)</param>
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
<param name="revision">v1.13.0</param>
|
<param name="revision">v1.13.1</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="set_version" mode="manual"/>
|
<service name="set_version" mode="manual"/>
|
||||||
<service name="tar" mode="buildtime"/>
|
<service name="tar" mode="buildtime"/>
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e34888f94bc91fef1c063c65457f1e557d2ef7cb6265f23db45d09938c5a2b51
|
|
||||||
size 23993869
|
|
BIN
libvpx-1.13.1.obscpio
(Stored with Git LFS)
Normal file
BIN
libvpx-1.13.1.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 1 07:24:46 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.13.1:
|
||||||
|
+ Bug fixes: Fix to a crash related to VP9 encoding.
|
||||||
|
https://crbug.com/1486441 (CVE-2023-5217)
|
||||||
|
- Drop CVE-2023-5217.patch: Fixed upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 28 09:27:46 UTC 2023 - Adrian Schröter <adrian@suse.de>
|
Thu Sep 28 09:27:46 UTC 2023 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: libvpx
|
name: libvpx
|
||||||
version: 1.13.0
|
version: 1.13.1
|
||||||
mtime: 1675820031
|
mtime: 1696025174
|
||||||
commit: d6eb9696aa72473c1a11d34d928d35a3acc0c9a9
|
commit: 10b9492dcf05b652e2e4b370e205bd605d421972
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%define sover 8
|
%define sover 8
|
||||||
Name: libvpx
|
Name: libvpx
|
||||||
Version: 1.13.0
|
Version: 1.13.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: VP8/VP9 codec library
|
Summary: VP8/VP9 codec library
|
||||||
License: BSD-3-Clause AND GPL-2.0-or-later
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
||||||
@ -26,8 +26,6 @@ Group: Productivity/Multimedia/Other
|
|||||||
URL: https://www.webmproject.org/
|
URL: https://www.webmproject.org/
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source1000: baselibs.conf
|
Source1000: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM
|
|
||||||
Patch1: CVE-2023-5217.patch
|
|
||||||
Patch2: libvpx-configure-add-arch.patch
|
Patch2: libvpx-configure-add-arch.patch
|
||||||
# only needed for test suite
|
# only needed for test suite
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user