commit
b2e8ee5452
@ -0,0 +1 @@
|
||||
e6d7751fe5c61340d3b9ce15f2109c6e5563f267 SOURCES/exfatprogs-1.2.2.tar.xz
|
@ -0,0 +1 @@
|
||||
SOURCES/exfatprogs-1.2.2.tar.xz
|
@ -0,0 +1,29 @@
|
||||
From 79b5b71cc6a1dbc45eeb63f53a6b51aa924309c8 Mon Sep 17 00:00:00 2001
|
||||
From: Pavel Reichl <preichl@redhat.com>
|
||||
Date: Mon, 13 Nov 2023 08:13:27 +0100
|
||||
Subject: [PATCH] exfat2img: fix Missing Initialization
|
||||
|
||||
exfatprogs-1.2.2/exfat2img/exfat2img.c:895: uninit_use: Using uninitialized value "ret".
|
||||
|
||||
Signed-off-by: Pavel Reichl <preichl@redhat.com>
|
||||
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
|
||||
---
|
||||
exfat2img/exfat2img.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/exfat2img/exfat2img.c b/exfat2img/exfat2img.c
|
||||
index 3f83588..f1a4ef2 100644
|
||||
--- a/exfat2img/exfat2img.c
|
||||
+++ b/exfat2img/exfat2img.c
|
||||
@@ -762,7 +762,7 @@ static ssize_t read_stream(int fd, void *buf, size_t len)
|
||||
|
||||
static int restore_from_stdin(struct exfat2img *ei)
|
||||
{
|
||||
- int in_fd, ret;
|
||||
+ int in_fd, ret = 0;
|
||||
unsigned char cc;
|
||||
unsigned int clu, end_clu;
|
||||
unsigned int cc_clu_count;
|
||||
--
|
||||
2.45.2
|
||||
|
@ -0,0 +1,43 @@
|
||||
From 8e4f2e671a154549d07ec45cb3c9cfe31b27b27f Mon Sep 17 00:00:00 2001
|
||||
From: Pavel Reichl <preichl@redhat.com>
|
||||
Date: Mon, 13 Nov 2023 08:37:06 +0100
|
||||
Subject: [PATCH] tune: label: fix USE_AFTER_FREE
|
||||
|
||||
double_free: Calling free frees pointer bs which has already been freed.
|
||||
|
||||
if exfat_alloc_exfat fails it already frees exfat->bs via exfat_free_exfat
|
||||
|
||||
Signed-off-by: Pavel Reichl <preichl@redhat.com>
|
||||
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
|
||||
---
|
||||
label/label.c | 1 -
|
||||
tune/tune.c | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/label/label.c b/label/label.c
|
||||
index 8cd5748..b110670 100644
|
||||
--- a/label/label.c
|
||||
+++ b/label/label.c
|
||||
@@ -105,7 +105,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
exfat = exfat_alloc_exfat(&bd, bs);
|
||||
if (!exfat) {
|
||||
- free(bs);
|
||||
ret = -ENOMEM;
|
||||
goto close_fd_out;
|
||||
}
|
||||
diff --git a/tune/tune.c b/tune/tune.c
|
||||
index f883556..fdb8c94 100644
|
||||
--- a/tune/tune.c
|
||||
+++ b/tune/tune.c
|
||||
@@ -129,7 +129,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
exfat = exfat_alloc_exfat(&bd, bs);
|
||||
if (!exfat) {
|
||||
- free(bs);
|
||||
ret = -ENOMEM;
|
||||
goto close_fd_out;
|
||||
}
|
||||
--
|
||||
2.45.2
|
||||
|
@ -0,0 +1,117 @@
|
||||
Name: exfatprogs
|
||||
Version: 1.2.2
|
||||
Release: 5%{?dist}
|
||||
Summary: Userspace utilities for exFAT filesystems
|
||||
License: GPL-2.0-only
|
||||
URL: https://github.com/%{name}/%{name}
|
||||
|
||||
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
Patch0: v1.2.3-exfat2img-fix-Missing-Initialization.patch
|
||||
Patch1: v1.2.3-tune-label-fix-USE_AFTER_FREE.patch
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libtool
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
Utilities for formatting and repairing exFAT filesystems.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -vif
|
||||
%configure \
|
||||
--enable-shared=yes \
|
||||
--enable-static=no
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%{_sbindir}/dump.exfat
|
||||
%{_sbindir}/exfat2img
|
||||
%{_sbindir}/exfatlabel
|
||||
%{_sbindir}/fsck.exfat
|
||||
%{_sbindir}/mkfs.exfat
|
||||
%{_sbindir}/tune.exfat
|
||||
%{_mandir}/man8/dump.exfat.*
|
||||
%{_mandir}/man8/exfat2img.*
|
||||
%{_mandir}/man8/exfatlabel.*
|
||||
%{_mandir}/man8/fsck.exfat.*
|
||||
%{_mandir}/man8/mkfs.exfat.*
|
||||
%{_mandir}/man8/tune.exfat.*
|
||||
|
||||
%changelog
|
||||
* Mon Jul 01 2024 Pavel Reichl <preichl@redhat.com> - 1.2.2-5
|
||||
- Fox High impact true positive findings
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2.2-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Oct 30 2023 Pavel Reichl <preichl@redhat.com> - 1.2.2-2
|
||||
- Convert License tag to SPDX format
|
||||
|
||||
* Sat Oct 28 2023 Simone Caronni <negativo17@gmail.com> - 1.2.2-1
|
||||
- Update to 1.2.2.
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Mon May 22 2023 Simone Caronni <negativo17@gmail.com> - 1.2.1-1
|
||||
- Update to 1.2.1.
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Oct 28 2022 Simone Caronni <negativo17@gmail.com> - 1.2.0-1
|
||||
- Update to 1.2.0.
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Sun Nov 21 2021 Simone Caronni <negativo17@gmail.com> - 1.1.3-1
|
||||
- Update to 1.1.3.
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue May 25 2021 Simone Caronni <negativo17@gmail.com> - 1.1.2-1
|
||||
- Update to 1.1.2.
|
||||
|
||||
* Thu Apr 22 2021 Simone Caronni <negativo17@gmail.com> - 1.1.1-1
|
||||
- Update to 1.1.1.
|
||||
|
||||
* Tue Mar 23 2021 Simone Caronni <negativo17@gmail.com> - 1.1.0-1
|
||||
- Update to 1.1.0.
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Dec 04 2020 Simone Caronni <negativo17@gmail.com> - 1.0.4-1
|
||||
- Update to 1.0.4.
|
||||
|
||||
* Wed May 20 2020 Simone Caronni <negativo17@gmail.com> - 1.0.3-1
|
||||
- Update to 1.0.3, no more shared libraries.
|
||||
|
||||
* Mon Apr 27 2020 Simone Caronni <negativo17@gmail.com> - 1.0.2-1
|
||||
- Review fixes.
|
||||
- Update to 1.0.2.
|
||||
|
||||
* Thu Apr 23 2020 Simone Caronni <negativo17@gmail.com> - 1.0.1-2
|
||||
- Rename to exfatprogs.
|
||||
- Removed provides/obsoletes on Fuse implementation.
|
||||
|
||||
* Wed Apr 15 2020 Simone Caronni <negativo17@gmail.com> - 1.0.1-1
|
||||
- First build.
|
Loading…
Reference in new issue