From 0cf7e2cfa40553e7ccf7603f4fba9ec9b455b989 Mon Sep 17 00:00:00 2001 From: Li-Yu Yu Date: Sat, 10 Dec 2022 05:45:11 +0800 Subject: [PATCH] cras: Fix alsa-lib download (#9177) * Switch from FTP to HTTPS * Check checksum * Simplify tarball unpack Fixes https://crbug.com/oss-fuzz/54159. cc @b92paul --- projects/cras/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/cras/Dockerfile b/projects/cras/Dockerfile index 3a533f6aa..b7503996b 100644 --- a/projects/cras/Dockerfile +++ b/projects/cras/Dockerfile @@ -62,9 +62,9 @@ RUN cd /tmp && git clone https://github.com/google/googletest.git -b v1.8.x && \ # Need to build and install alsa so there is a static lib. RUN mkdir -p /tmp/alsa-build && cd /tmp/alsa-build && \ - wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.4.1.tar.bz2 && \ - bzip2 -f -d alsa-lib-* && \ - tar xf alsa-lib-* && \ + wget https://alsa-project.org/files/pub/lib/alsa-lib-1.1.4.1.tar.bz2 && \ + echo 91bb870c14d1c7c269213285eeed874fa3d28112077db061a3af8010d0885b76 alsa-lib-1.1.4.1.tar.bz2 | sha256sum -c && \ + tar xjf alsa-lib-* && \ cd alsa-lib-* && \ ./configure --enable-static --disable-shared && \ make clean && \