Compare commits
10 Commits
64ce456617
...
56b32b9f57
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56b32b9f57 | ||
|
|
4a1f161533 | ||
|
|
392cc4ce91 | ||
|
|
4a7eaee035 | ||
|
|
ab2a67fce9 | ||
|
|
db96419056 | ||
|
|
47ac0362fb | ||
|
|
faeac50de4 | ||
|
|
c14465c7b6 | ||
|
|
2dedc54653 |
BIN
0.19.tar.gz
BIN
0.19.tar.gz
Binary file not shown.
BIN
0.20.tar.gz
Normal file
BIN
0.20.tar.gz
Normal file
Binary file not shown.
26
backport-CVE-2023-46361.patch
Normal file
26
backport-CVE-2023-46361.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From ee53a7e4bc7819d32e8c0b2057885bcc97586bf3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sebastian Rasmussen <sebras@gmail.com>
|
||||||
|
Date: Sun, 5 Nov 2023 12:21:52 +0100
|
||||||
|
Subject: [PATCH] Bug 705041: jbig2dec: Avoid uninitialized allocator in
|
||||||
|
command-line tool.
|
||||||
|
|
||||||
|
Reference:https://github.com/ArtifexSoftware/jbig2dec/commit/ee53a7e4bc7819d32e8c0b2057885bcc97586bf3
|
||||||
|
Conflict:NA
|
||||||
|
|
||||||
|
---
|
||||||
|
jbig2dec.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/jbig2dec.c b/jbig2dec.c
|
||||||
|
index 15d204d..1e1dad8 100644
|
||||||
|
--- a/jbig2dec.c
|
||||||
|
+++ b/jbig2dec.c
|
||||||
|
@@ -567,7 +567,7 @@ main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
jbig2dec_params_t params;
|
||||||
|
jbig2dec_error_callback_state_t error_callback_state;
|
||||||
|
- jbig2dec_allocator_t allocator_;
|
||||||
|
+ jbig2dec_allocator_t allocator_ = { 0 };
|
||||||
|
jbig2dec_allocator_t *allocator = &allocator_;
|
||||||
|
Jbig2Ctx *ctx = NULL;
|
||||||
|
FILE *f = NULL, *f_page = NULL;
|
||||||
@ -1,12 +1,14 @@
|
|||||||
Name: jbig2dec
|
Name: jbig2dec
|
||||||
Version: 0.19
|
Version: 0.20
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A decoder implementation of the JBIG2 image compression format.
|
Summary: A decoder implementation of the JBIG2 image compression format.
|
||||||
|
|
||||||
License: AGPLv3+
|
License: AGPLv3+
|
||||||
URL: https://jbig2dec.com/
|
URL: https://jbig2dec.com/
|
||||||
Source0: https://github.com/ArtifexSoftware/jbig2dec/archive/%{version}.tar.gz
|
Source0: https://github.com/ArtifexSoftware/jbig2dec/archive/%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch6000: backport-CVE-2023-46361.patch
|
||||||
|
|
||||||
BuildRequires: gcc libtool chrpath
|
BuildRequires: gcc libtool chrpath
|
||||||
Provides: %{name}-libs = %{version}-%{release}
|
Provides: %{name}-libs = %{version}-%{release}
|
||||||
Obsoletes: %{name}-libs < %{version}-%{release}
|
Obsoletes: %{name}-libs < %{version}-%{release}
|
||||||
@ -31,6 +33,10 @@ Files for jbig2dec development.
|
|||||||
%configure
|
%configure
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
sed -i '1s/python/python3/' test_jbig2dec.py
|
||||||
|
make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%delete_la_and_a
|
%delete_la_and_a
|
||||||
@ -39,7 +45,11 @@ Files for jbig2dec development.
|
|||||||
chrpath -d %{buildroot}%{_bindir}/jbig2dec
|
chrpath -d %{buildroot}%{_bindir}/jbig2dec
|
||||||
|
|
||||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
%ifarch sw_64
|
||||||
|
echo "/usr/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
%else
|
||||||
echo "/usr/lib64" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
echo "/usr/lib64" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
@ -62,6 +72,27 @@ echo "/usr/lib64" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 29 2024 zhangpan <zhangpan103@h-partners.com> - 0.20-2
|
||||||
|
- fix CVE-2023-46361
|
||||||
|
|
||||||
|
* Wed Dec 13 2023 wangqia <wangqia@uniontech.com> - 0.20-1
|
||||||
|
- Update to 0.20
|
||||||
|
|
||||||
|
* Thu Oct 27 2022 wuzx<wuzx1226@qq.com> - 0.19-4
|
||||||
|
- Type:feature
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Add sw64 architecture
|
||||||
|
|
||||||
|
* Thu Mar 31 2022 liuyumeng <liuyumeng5@h-partners.com> - 0.19-3
|
||||||
|
- enable tests
|
||||||
|
|
||||||
|
* Sat Mar 27 2021 dowzyx <zhaoyuxing2@huawei.com> - 0.19-2
|
||||||
|
- Type:bufix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix fuzz test from open source community
|
||||||
|
|
||||||
* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 0.19-1
|
* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 0.19-1
|
||||||
- update to 0.19
|
- update to 0.19
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user