Compare commits
10 Commits
f09ab85d60
...
66cdef5b19
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66cdef5b19 | ||
|
|
7ff243305c | ||
|
|
6e6456ba82 | ||
|
|
3d9be8e605 | ||
|
|
a2f90adfb5 | ||
|
|
dffc2eca90 | ||
|
|
a62cbe6421 | ||
|
|
d1b89c7ec2 | ||
|
|
d28b175212 | ||
|
|
28723da1df |
1316
CVE-2023-32700.patch
Normal file
1316
CVE-2023-32700.patch
Normal file
File diff suppressed because it is too large
Load Diff
54
CVE-2023-46048.patch
Normal file
54
CVE-2023-46048.patch
Normal file
@ -0,0 +1,54 @@
|
||||
Origin:
|
||||
https://github.com/TeX-Live/texlive-source/commit/33b330bc48ed2df69daf80a81be3cde8bf794816
|
||||
https://tug.org/pipermail/tex-live/2023-August/049402.html
|
||||
|
||||
From 33b330bc48ed2df69daf80a81be3cde8bf794816 Mon Sep 17 00:00:00 2001
|
||||
From: Karl Berry <karl@freefriends.org>
|
||||
Date: Sat, 26 Aug 2023 17:50:10 +0000
|
||||
Subject: [PATCH] guard against corrupt pfb in dup tests, pdftex r910
|
||||
|
||||
git-svn-id: svn://tug.org/texlive/trunk/Build/source@68069 c570f23f-e606-0410-a88d-b1316a301751
|
||||
---
|
||||
texlive-20210325-source/texk/web2c/pdftexdir/writet1.c | 15 ++++++++++++---
|
||||
1 files changed, 12 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c b/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c
|
||||
index 0444d46be0..f2a8386cab 100644
|
||||
--- a/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c
|
||||
+++ b/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c
|
||||
@@ -841,7 +841,10 @@ static char **t1_builtin_enc(void)
|
||||
*t1_buf_array == '/' && valid_code(i)) {
|
||||
if (strcmp(t1_buf_array + 1, notdef) != 0)
|
||||
glyph_names[i] = xstrdup(t1_buf_array + 1);
|
||||
- p = strstr(p, " put") + strlen(" put");
|
||||
+ p = strstr(p, " put");
|
||||
+ if (!p)
|
||||
+ pdftex_fail("invalid pfb, no put found in dup");
|
||||
+ p += strlen(" put");
|
||||
skip(p, ' ');
|
||||
}
|
||||
/*
|
||||
@@ -850,7 +853,10 @@ static char **t1_builtin_enc(void)
|
||||
else if (sscanf(p, "dup dup %i exch %i get put", &b, &a) == 2
|
||||
&& valid_code(a) && valid_code(b)) {
|
||||
copy_glyph_names(glyph_names, a, b);
|
||||
- p = strstr(p, " get put") + strlen(" get put");
|
||||
+ p = strstr(p, " get put");
|
||||
+ if (!p)
|
||||
+ pdftex_fail("invalid pfb, no get put found in dup dup");
|
||||
+ p += strlen(" get put");
|
||||
skip(p, ' ');
|
||||
}
|
||||
/*
|
||||
@@ -861,7 +867,10 @@ static char **t1_builtin_enc(void)
|
||||
&& valid_code(a) && valid_code(b) && valid_code(c)) {
|
||||
for (i = 0; i < c; i++)
|
||||
copy_glyph_names(glyph_names, a + i, b + i);
|
||||
- p = strstr(p, " putinterval") + strlen(" putinterval");
|
||||
+ p = strstr(p, " putinterval");
|
||||
+ if (!p)
|
||||
+ pdftex_fail("invalid pfb, no putinterval found in dup dup");
|
||||
+ p += strlen(" putinterval");
|
||||
skip(p, ' ');
|
||||
}
|
||||
/*
|
||||
37
CVE-2023-46051.patch
Normal file
37
CVE-2023-46051.patch
Normal file
@ -0,0 +1,37 @@
|
||||
Origin:
|
||||
https://github.com/TeX-Live/texlive-source/commit/8215ee325f74405f795a02d247fbd99302810261
|
||||
https://tug.org/pipermail/tex-live/2023-August/049415.html
|
||||
|
||||
From 8215ee325f74405f795a02d247fbd99302810261 Mon Sep 17 00:00:00 2001
|
||||
From: Karl Berry <karl@freefriends.org>
|
||||
Date: Mon, 28 Aug 2023 22:32:09 +0000
|
||||
Subject: [PATCH] guard against undump of corrupt .fmt
|
||||
|
||||
git-svn-id: svn://tug.org/texlive/trunk/Build/source@68100 c570f23f-e606-0410-a88d-b1316a301751
|
||||
---
|
||||
texlive-20210325-source/texk/web2c/pdftexdir/tounicode.c | 9 ++++++++-
|
||||
1 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/texlive-20210325-source/texk/web2c/pdftexdir/tounicode.c b/texlive-20210325-source/texk/web2c/pdftexdir/tounicode.c
|
||||
index e658064abb..e57c36f6be 100644
|
||||
--- a/texlive-20210325-source/texk/web2c/pdftexdir/tounicode.c
|
||||
+++ b/texlive-20210325-source/texk/web2c/pdftexdir/tounicode.c
|
||||
@@ -535,10 +535,17 @@ void undumptounicode(void)
|
||||
void **result;
|
||||
glyph_unicode_entry *gu = new_glyph_unicode_entry();
|
||||
undumpcharptr(gu->name);
|
||||
+ if (gu->name == NULL) {
|
||||
+ pdftex_fail("undumpcharptr(gu->name) got NULL");
|
||||
+ }
|
||||
generic_undump(gu->code);
|
||||
|
||||
- if (gu->code == UNI_STRING)
|
||||
+ if (gu->code == UNI_STRING) {
|
||||
undumpcharptr(gu->unicode_seq);
|
||||
+ if (gu->unicode_seq == NULL) {
|
||||
+ pdftex_fail("undumpcharptr(gu->unicode_seq) got NULL");
|
||||
+ }
|
||||
+ }
|
||||
|
||||
result = avl_probe(glyph_unicode_tree, gu);
|
||||
assert(*result == gu);
|
||||
@ -1,47 +0,0 @@
|
||||
From 28fe90a530c055abce7af362512b81a70d296e7d Mon Sep 17 00:00:00 2001
|
||||
From: Akira Kakuto <kakuto@fuk.kindai.ac.jp>
|
||||
Date: Mon, 23 Jul 2018 21:21:12 +0000
|
||||
Subject: [PATCH] add synctex_version.h (report from Johannes)
|
||||
|
||||
git-svn-id: svn://tug.org/texlive/trunk/Build/source@48260 c570f23f-e606-0410-a88d-b1316a301751
|
||||
---
|
||||
texk/web2c/Makefile.in | 3 ++-
|
||||
texk/web2c/synctexdir/am/synctex.am | 1 +
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/texk/web2c/Makefile.in b/texk/web2c/Makefile.in
|
||||
index abdd6dfef..4872c68f2 100644
|
||||
--- a/texlive-20210325-source/texk/web2c/Makefile.in
|
||||
+++ b/texlive-20210325-source/texk/web2c/Makefile.in
|
||||
@@ -2420,7 +2420,7 @@ NROFF = nroff
|
||||
MANS = $(dist_man_MANS) $(nodist_man_MANS)
|
||||
DATA = $(pkgconfig_DATA)
|
||||
am__syncinclude_HEADERS_DIST = synctexdir/synctex_parser.h \
|
||||
- synctexdir/synctex_parser_utils.h
|
||||
+ synctexdir/synctex_version.h synctexdir/synctex_parser_utils.h
|
||||
HEADERS = $(syncinclude_HEADERS)
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
@@ -4687,6 +4687,7 @@ syncincludedir = ${includedir}/synctex
|
||||
pkgconfigdir = ${libdir}/pkgconfig
|
||||
@SYNCTEX_TRUE@syncinclude_HEADERS = \
|
||||
@SYNCTEX_TRUE@ synctexdir/synctex_parser.h \
|
||||
+@SYNCTEX_TRUE@ synctexdir/synctex_version.h \
|
||||
@SYNCTEX_TRUE@ synctexdir/synctex_parser_utils.h
|
||||
|
||||
@SYNCTEX_TRUE@pkgconfig_DATA = synctexdir/synctex.pc
|
||||
diff --git a/texk/web2c/synctexdir/am/synctex.am b/texk/web2c/synctexdir/am/synctex.am
|
||||
index 316ffbbae..b69cb260a 100644
|
||||
--- a/texlive-20210325-source/texk/web2c/synctexdir/am/synctex.am
|
||||
+++ b/texlive-20210325-source/texk/web2c/synctexdir/am/synctex.am
|
||||
@@ -55,6 +55,7 @@ pkgconfigdir = ${libdir}/pkgconfig
|
||||
if SYNCTEX
|
||||
syncinclude_HEADERS = \
|
||||
synctexdir/synctex_parser.h \
|
||||
+ synctexdir/synctex_version.h \
|
||||
synctexdir/synctex_parser_utils.h
|
||||
|
||||
pkgconfig_DATA = synctexdir/synctex.pc
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
diff -up a/texlive-20210325-source/texk/dvipsk/writet1.c.CVE-2018-17407 a/texlive-20210325-source/texk/dvipsk/writet1.c
|
||||
--- a/texlive-20210325-source/texk/dvipsk/writet1.c.CVE-2018-17407 2018-10-01 11:03:50.140899732 -0400
|
||||
+++ a/texlive-20210325-source/texk/dvipsk/writet1.c 2018-10-01 11:04:31.425999765 -0400
|
||||
@@ -1449,7 +1449,9 @@ static void t1_check_unusual_charstring(
|
||||
*(strend(t1_buf_array) - 1) = ' ';
|
||||
|
||||
t1_getline();
|
||||
+ alloc_array(t1_buf, strlen(t1_line_array) + strlen(t1_buf_array) + 1, T1_BUF_SIZE);
|
||||
strcat(t1_buf_array, t1_line_array);
|
||||
+ alloc_array(t1_line, strlen(t1_buf_array) + 1, T1_BUF_SIZE);
|
||||
strcpy(t1_line_array, t1_buf_array);
|
||||
t1_line_ptr = eol(t1_line_array);
|
||||
}
|
||||
diff -up a/texlive-20210325-source/texk/web2c/luatexdir/font/writet1.w.CVE-2018-17407 a/texlive-20210325-source/texk/web2c/luatexdir/font/writet1.w
|
||||
--- a/texlive-20210325-source/texk/web2c/luatexdir/font/writet1.w.CVE-2018-17407 2018-10-01 11:05:54.404187837 -0400
|
||||
+++ a/texlive-20210325-source/texk/web2c/luatexdir/font/writet1.w 2018-10-01 11:06:33.537335758 -0400
|
||||
@@ -1625,7 +1625,9 @@ static void t1_check_unusual_charstring(
|
||||
if (sscanf(p, "%i", &i) != 1) {
|
||||
strcpy(t1_buf_array, t1_line_array);
|
||||
t1_getline();
|
||||
+ alloc_array(t1_buf, strlen(t1_line_array) + strlen(t1_buf_array) + 1, T1_BUF_SIZE);
|
||||
strcat(t1_buf_array, t1_line_array);
|
||||
+ alloc_array(t1_line, strlen(t1_buf_array) + 1, T1_BUF_SIZE);
|
||||
strcpy(t1_line_array, t1_buf_array);
|
||||
t1_line_ptr = eol(t1_line_array);
|
||||
}
|
||||
diff -up a/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c.CVE-2018-17407 a/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c
|
||||
--- a/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c.CVE-2018-17407 2018-10-01 11:06:57.881806099 -0400
|
||||
+++ a/texlive-20210325-source/texk/web2c/pdftexdir/writet1.c 2018-10-01 11:08:06.424314628 -0400
|
||||
@@ -1598,7 +1598,9 @@ static void t1_check_unusual_charstring(
|
||||
*(strend(t1_buf_array) - 1) = ' ';
|
||||
|
||||
t1_getline();
|
||||
+ alloc_array(t1_buf, strlen(t1_line_array) + strlen(t1_buf_array) + 1, T1_BUF_SIZE);
|
||||
strcat(t1_buf_array, t1_line_array);
|
||||
+ alloc_array(t1_line, strlen(t1_buf_array) + 1, T1_BUF_SIZE);
|
||||
strcpy(t1_line_array, t1_buf_array);
|
||||
t1_line_ptr = eol(t1_line_array);
|
||||
}
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
Name: texlive-base
|
||||
Version: 20210325
|
||||
Release: 3
|
||||
Release: 8
|
||||
Epoch: 9
|
||||
Summary: TeX formatting system
|
||||
License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils
|
||||
@ -427,6 +427,9 @@ Patch0030: texlive-base-20200327-out-of-memory.patch
|
||||
Patch0032: texlive-base-20210325-mendex-weird-arch-fixes.patch
|
||||
Patch0033: texlive-base-20210325-no-setpdfwrite.patch
|
||||
|
||||
Patch0034: CVE-2023-32700.patch
|
||||
Patch0035: CVE-2023-46048.patch
|
||||
Patch0036: CVE-2023-46051.patch
|
||||
|
||||
BuildRequires: xz libXaw-devel libXi-devel ncurses-devel bison flex file perl(Digest::MD5) texinfo gcc-c++
|
||||
BuildRequires: gd-devel freetype-devel libpng-devel zlib-devel potrace-devel
|
||||
@ -6148,8 +6151,13 @@ done
|
||||
%global mysources %{lua: for index,value in ipairs(sources) do if index >= 16 then print(value.." ") end end}
|
||||
|
||||
%build
|
||||
%ifarch loongarch64
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fcommon"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -fcommon"
|
||||
%else
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security -fcommon"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security -fcommon"
|
||||
%endif
|
||||
export LDFLAGS="%{build_ldflags}"
|
||||
cd source
|
||||
PREF=`pwd`/inst
|
||||
@ -6165,7 +6173,7 @@ cd work
|
||||
--enable-shared --enable-compiler-warnings=max --without-cxx-runtime-hack \
|
||||
--disable-native-texlive-build --disable-t1utils --disable-psutils --disable-biber --disable-ptexenc --disable-largefile \
|
||||
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
||||
%ifarch aarch64 riscv64
|
||||
%ifarch aarch64 riscv64 loongarch64 ppc64le
|
||||
--disable-luajittex --disable-mfluajit --disable-luajithbtex --disable-mfluajit-nowin \
|
||||
%endif
|
||||
--disable-rpath
|
||||
@ -6342,6 +6350,21 @@ find -type f -exec sed -i '1s|^#!/usr/bin/env python$|#!%{__python3}|' {} +
|
||||
sed -i '1s|^#!/usr/bin/python |#!%{__python3} |' ./%{_datadir}/texlive/texmf-dist/scripts/de-macro/de-macro
|
||||
cd -
|
||||
|
||||
for i in afm2pl afm2tfm aleph bibtex bibtex8 bibtexu chkdvifont chktex ctie ctangle ctwill ctwill-refsort ctwill-twinx cweave detex disdvi dt2dv dv2dt dvi2tty dvibook dviconcat dvicopy dvilj dvilj2p dvilj4 dvilj4l dvipng \
|
||||
dvipos dvips dviselect dvispc dvisvgm dvitodvi dvitype eptex euptex gftodvi gftopk gftype gregorio gsftopk hbf2gf kpsewhich luahbtex luatex mag makeindex makejvf mendex mf mflua mft mf-nowin mpost otftotfm msxlint \
|
||||
odvicopy odvitype omfonts otangle otp2ocp outocp patgen pbibtex pdftex pdftosrc pktogf pdvitype pfb2pfa pk2bm pktype pltotf pmpost pooltype ppltotf ps2pk ptex ptftopl synctex t4ht tangle tex tex4ht tftopl tie \
|
||||
ttf2afm ttf2pk ttf2tfm ttfdump upbibtex updvitype upmendex upmpost uppltotf uptex uptftopl vftovp vptovf weave wofm2opl wopl2ofm wovf2ovp wovp2ovf xdvi-xaw xdvipdfmx xetex; do
|
||||
chrpath --delete %{buildroot}%{_bindir}/$i
|
||||
done
|
||||
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
for i in luajittex luajithbtex mfluajit;do
|
||||
chrpath --delete %{buildroot}%{_bindir}/$i
|
||||
done
|
||||
%endif
|
||||
|
||||
chrpath --delete %{buildroot}%{_libdir}/libptexenc.so.*
|
||||
|
||||
mv %{buildroot}%{_datadir}/texlive/texmf-dist/fonts/map/dvips/tetex/dvipdfm35.map %{buildroot}%{_datadir}/texlive/texmf-dist/fonts/map/dvips/tetex/dvipdfm35.oldmap
|
||||
|
||||
%pretrans -p <lua>
|
||||
@ -7503,7 +7526,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
%{_includedir}/kpathsea/*
|
||||
%{_includedir}/synctex/
|
||||
%{_includedir}/texlua53/
|
||||
%ifnarch aarch64 riscv64
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%{_includedir}/texluajit/
|
||||
%endif
|
||||
%{_libdir}/*.so
|
||||
@ -7579,7 +7602,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
|
||||
%files -n texlive-luajittex
|
||||
%license gpl2.txt
|
||||
%ifnarch aarch64 riscv64
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%{_bindir}/luajittex
|
||||
%{_bindir}/luajithbtex
|
||||
%{_bindir}/texluajit
|
||||
@ -7698,7 +7721,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
%license gpl2.txt
|
||||
%{_bindir}/mflua
|
||||
%{_bindir}/mflua-nowin
|
||||
%ifnarch aarch64 riscv64
|
||||
%ifnarch aarch64 riscv64 loongarch64 ppc64le
|
||||
%{_bindir}/mfluajit
|
||||
%{_bindir}/mfluajit-nowin
|
||||
%endif
|
||||
@ -8631,6 +8654,21 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
%doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/
|
||||
|
||||
%changelog
|
||||
* Mon Aug 05 2024 wangkai <13474090681@163.com> - 9:20210325-8
|
||||
- Fix CVE-2023-46048, CVE-2023-46051
|
||||
|
||||
* Mon Nov 27 2023 jiahua.yu <jiahua.yu@shingroup.cn> - 9:20210325-7
|
||||
- Init support for ppc64le
|
||||
|
||||
* Mon Jul 03 2023 yaoxin <yao_xin001@hoperun.com> - 9:20210325-6
|
||||
- Fix CVE-2023-32700
|
||||
|
||||
* Sat Mar 4 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 9:20210325-5
|
||||
- fix build error for loongarch64
|
||||
|
||||
* Sat Feb 18 2023 xu_ping <xu_ping33@h-partners.com> - 9:20210325-4
|
||||
- Remove rpath
|
||||
|
||||
* Sun Nov 13 2022 misaka00251 <liuxin@iscas.ac.cn> - 9:20210325-3
|
||||
- Let texlive-base provide system maps, since we drop updmap-map.
|
||||
|
||||
@ -8672,4 +8710,4 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
||||
- remove useless BuildRequires.
|
||||
|
||||
* Thu Dec 12 2019 daiqianwen <daiqianwen@huawei.com> - 20180414-25
|
||||
- Package init
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user