From: Robert Yang <liezhi.yang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 06/12] libav: 9.18 -> 11.4
Date: Fri, 12 Jun 2015 11:19:59 +0800 [thread overview]
Message-ID: <557A4FDF.7060304@windriver.com> (raw)
In-Reply-To: <7189f3ea9eb20d08f73abf3af4715a43f73740c0.1433842738.git.liezhi.yang@windriver.com>
Hello,
Other patches had been merged except this one, any comments on it, please ?
// Robert
On 06/09/2015 10:51 PM, Robert Yang wrote:
> * Remove the backport patch libav-fix-CVE-2014-9676.patch.
> * Backport a patch from debain to fix the build for i586 with gcc.
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/recipes-multimedia/libav/libav.inc | 4 +-
> .../libav/libav/libav-fix-CVE-2014-9676.patch | 98 --------------------
> ...rkaround-to-build-libav-for-i586-with-gcc.patch | 26 ++++++
> meta/recipes-multimedia/libav/libav_11.4.bb | 4 +
> meta/recipes-multimedia/libav/libav_9.18.bb | 6 --
> 5 files changed, 33 insertions(+), 105 deletions(-)
> delete mode 100644 meta/recipes-multimedia/libav/libav/libav-fix-CVE-2014-9676.patch
> create mode 100644 meta/recipes-multimedia/libav/libav/workaround-to-build-libav-for-i586-with-gcc.patch
> create mode 100644 meta/recipes-multimedia/libav/libav_11.4.bb
> delete mode 100644 meta/recipes-multimedia/libav/libav_9.18.bb
>
> diff --git a/meta/recipes-multimedia/libav/libav.inc b/meta/recipes-multimedia/libav/libav.inc
> index 6ef273b..6cd04c7 100644
> --- a/meta/recipes-multimedia/libav/libav.inc
> +++ b/meta/recipes-multimedia/libav/libav.inc
> @@ -15,7 +15,9 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> file://COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \
> file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02"
>
> -SRC_URI = "http://libav.org/releases/${BP}.tar.xz"
> +SRC_URI = "http://libav.org/releases/${BP}.tar.xz \
> + file://workaround-to-build-libav-for-i586-with-gcc.patch \
> +"
>
> # Provides ffmpeg compat, see http://libav.org/about.html
> PROVIDES = "ffmpeg"
> diff --git a/meta/recipes-multimedia/libav/libav/libav-fix-CVE-2014-9676.patch b/meta/recipes-multimedia/libav/libav/libav-fix-CVE-2014-9676.patch
> deleted file mode 100644
> index 1e31caa..0000000
> --- a/meta/recipes-multimedia/libav/libav/libav-fix-CVE-2014-9676.patch
> +++ /dev/null
> @@ -1,98 +0,0 @@
> -Upstream-Status: Backport
> -
> -Backport patch to fix CVE-2014-9676.
> -
> -https://security-tracker.debian.org/tracker/CVE-2014-9676
> -https://git.libav.org/?p=libav.git;a=commit;h=b3f04657368a32a9903406395f865e230b1de348
> -
> -Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ----
> -From b3f04657368a32a9903406395f865e230b1de348 Mon Sep 17 00:00:00 2001
> -From: Luca Barbato <lu_zero@gentoo.org>
> -Date: Mon, 5 Jan 2015 10:40:41 +0100
> -Subject: [PATCH] segment: Fix the failure paths
> -
> -A failure in segment_end() or segment_start() would lead to freeing
> -a dangling pointer and in general further calls to seg_write_packet()
> -or to seg_write_trailer() would have the same faulty behaviour.
> -
> -CC: libav-stable@libav.org
> -Reported-By: luodalongde@gmail.com
> ----
> - libavformat/segment.c | 32 ++++++++++++++++++++------------
> - 1 file changed, 20 insertions(+), 12 deletions(-)
> -
> -diff --git a/libavformat/segment.c b/libavformat/segment.c
> -index 52da6b9..bcfd1f9 100644
> ---- a/libavformat/segment.c
> -+++ b/libavformat/segment.c
> -@@ -184,6 +184,13 @@ static void close_null_ctx(AVIOContext *pb)
> - av_free(pb);
> - }
> -
> -+static void seg_free_context(SegmentContext *seg)
> -+{
> -+ avio_closep(&seg->pb);
> -+ avformat_free_context(seg->avf);
> -+ seg->avf = NULL;
> -+}
> -+
> - static int seg_write_header(AVFormatContext *s)
> - {
> - SegmentContext *seg = s->priv_data;
> -@@ -265,12 +272,9 @@ static int seg_write_header(AVFormatContext *s)
> - }
> -
> - fail:
> -- if (ret) {
> -- if (seg->list)
> -- avio_close(seg->pb);
> -- if (seg->avf)
> -- avformat_free_context(seg->avf);
> -- }
> -+ if (ret < 0)
> -+ seg_free_context(seg);
> -+
> - return ret;
> - }
> -
> -@@ -282,6 +286,9 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
> - int64_t end_pts = seg->recording_time * seg->number;
> - int ret, can_split = 1;
> -
> -+ if (!oc)
> -+ return AVERROR(EINVAL);
> -+
> - if (seg->has_video) {
> - can_split = st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
> - pkt->flags & AV_PKT_FLAG_KEY;
> -@@ -322,11 +329,8 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
> - ret = ff_write_chained(oc, pkt->stream_index, pkt, s);
> -
> - fail:
> -- if (ret < 0) {
> -- if (seg->list)
> -- avio_close(seg->pb);
> -- avformat_free_context(oc);
> -- }
> -+ if (ret < 0)
> -+ seg_free_context(seg);
> -
> - return ret;
> - }
> -@@ -335,7 +339,11 @@ static int seg_write_trailer(struct AVFormatContext *s)
> - {
> - SegmentContext *seg = s->priv_data;
> - AVFormatContext *oc = seg->avf;
> -- int ret;
> -+ int ret = 0;
> -+
> -+ if (!oc)
> -+ goto fail;
> -+
> - if (!seg->write_header_trailer) {
> - if ((ret = segment_end(oc, 0)) < 0)
> - goto fail;
> ---
> -2.4.1.314.g9532ead
> -
> diff --git a/meta/recipes-multimedia/libav/libav/workaround-to-build-libav-for-i586-with-gcc.patch b/meta/recipes-multimedia/libav/libav/workaround-to-build-libav-for-i586-with-gcc.patch
> new file mode 100644
> index 0000000..36f6ded
> --- /dev/null
> +++ b/meta/recipes-multimedia/libav/libav/workaround-to-build-libav-for-i586-with-gcc.patch
> @@ -0,0 +1,26 @@
> +Description: Workaround to build libav for i586 with gcc 4.9.2 by avoiding memset
> +Author: Bernhard �belacker <bernhardu@vr-web.de>
> +
> +---
> +Bug-Debian: https://bugs.debian.org/783082
> +Last-Update: 2015-04-28
> +
> +Upstream-Status: Backport [debian]
> +
> +Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> +
> +--- libav-11.3.orig/libavcodec/h264_cabac.c
> ++++ libav-11.3/libavcodec/h264_cabac.c
> +@@ -2020,7 +2020,11 @@ decode_intra_mb:
> + // In deblocking, the quantizer is 0
> + h->cur_pic.qscale_table[mb_xy] = 0;
> + // All coeffs are present
> +- memset(h->non_zero_count[mb_xy], 16, 48);
> ++ /*memset(h->non_zero_count[mb_xy], 16, 48);*/
> ++ /* avoiding this memset because it leads at least with gcc4.9.2 to error: 'asm' operand has impossible constraints */
> ++ for (size_t i = 0; i < 48; i++) {
> ++ ( (unsigned char*)(h->non_zero_count[mb_xy]) ) [i] = 16;
> ++ }
> + h->cur_pic.mb_type[mb_xy] = mb_type;
> + h->last_qscale_diff = 0;
> + return 0;
> diff --git a/meta/recipes-multimedia/libav/libav_11.4.bb b/meta/recipes-multimedia/libav/libav_11.4.bb
> new file mode 100644
> index 0000000..dde7094
> --- /dev/null
> +++ b/meta/recipes-multimedia/libav/libav_11.4.bb
> @@ -0,0 +1,4 @@
> +require libav.inc
> +
> +SRC_URI[md5sum] = "98c264530a3a5e569543f60b917c3daa"
> +SRC_URI[sha256sum] = "0b7dabc2605f3a254ee410bb4b1a857945696aab495fe21b34c3b6544ff5d525"
> diff --git a/meta/recipes-multimedia/libav/libav_9.18.bb b/meta/recipes-multimedia/libav/libav_9.18.bb
> deleted file mode 100644
> index 210a649..0000000
> --- a/meta/recipes-multimedia/libav/libav_9.18.bb
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -require libav.inc
> -
> -SRC_URI[md5sum] = "75e838068a75fb88e1b4ea0546bc16f0"
> -SRC_URI[sha256sum] = "0875e835da683eef1a7bac75e1884634194149d7479d1538ba9fbe1614d066d7"
> -
> -SRC_URI += "file://libav-fix-CVE-2014-9676.patch"
>
>
>
next prev parent reply other threads:[~2015-06-12 3:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-09 14:51 [PATCH 00/12] Packages Upgrade Robert Yang
2015-06-09 14:51 ` [PATCH 01/12] libpfm4: 4.3.0 -> 4.6.0 Robert Yang
2015-06-09 14:51 ` [PATCH 02/12] clutter-gst-3.0: 3.0.4 -> 3.0.6 Robert Yang
2015-06-09 14:51 ` [PATCH 03/12] augeas: 1.2.0 -> 1.4.0 Robert Yang
2015-06-09 14:51 ` [PATCH 04/12] dropbear: 2014.66 -> 2015.67 Robert Yang
2015-06-09 14:51 ` [PATCH 05/12] gpgme: 1.4.3 -> 1.5.4 Robert Yang
2015-06-09 14:51 ` [PATCH 06/12] libav: 9.18 -> 11.4 Robert Yang
2015-06-12 3:19 ` Robert Yang [this message]
2015-06-12 8:40 ` Paul Eggleton
2015-06-12 11:11 ` Burton, Ross
2015-06-15 5:35 ` Robert Yang
2015-06-09 14:51 ` [PATCH 07/12] gstreamer1.0-libav: fix build for i586 with gcc Robert Yang
2015-06-09 14:51 ` [PATCH 08/12] qmmp: 0.7.7 -> 0.8.5 Robert Yang
2015-06-09 14:51 ` [PATCH 09/12] libevdev: 1.3 -> 1.4.2 Robert Yang
2015-06-09 14:51 ` [PATCH 10/12] blktrace: 1.0.5 -> 1.1.0 Robert Yang
2015-06-09 16:50 ` Burton, Ross
2015-06-10 1:45 ` Robert Yang
2015-06-09 14:51 ` [PATCH 11/12] yasm: 1.2.0 -> 1.3.0 Robert Yang
2015-06-09 14:51 ` [PATCH 12/12] x264: r2265 -> r2491 Robert Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=557A4FDF.7060304@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox