Skip to content

Commit e38b871

Browse files
committed
use screen v4 to fix buffer overflow issue
1 parent de7101f commit e38b871

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/root/install.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mv /tmp/scripts-master/shell/arch/docker/*.sh /usr/local/bin/
3939
####
4040

4141
# define pacman packages
42-
pacman_packages="jre8-openjdk-headless jre11-openjdk-headless jre17-openjdk-headless jre-openjdk-headless screen rsync"
42+
pacman_packages="jre8-openjdk-headless jre11-openjdk-headless jre17-openjdk-headless jre-openjdk-headless rsync"
4343

4444
# install compiled packages using pacman
4545
if [[ ! -z "${pacman_packages}" ]]; then
@@ -87,6 +87,11 @@ cat <<EOF > /home/nobody/.screenrc
8787
termcapinfo xterm* ti@:te@
8888
EOF
8989

90+
# download screen v4 from arch linux archive due to buffer overflow bug reported
91+
# here:- https://gitlab.archlinux.org/archlinux/packaging/packages/screen/-/issues/2
92+
curl -o /tmp/screen.tar.zst -L https://archive.archlinux.org/packages/s/screen/screen-4.9.1-2-x86_64.pkg.tar.zst
93+
pacman -U /tmp/screen.tar.zst --noconfirm
94+
9095
# container perms
9196
####
9297

0 commit comments

Comments
 (0)