exfatprogs/exfatprogs.spec
Pavel Reichl e223325d9c Fix memory leak in fsck
Upstream fix for this is part of d58057bd9b2f4a24b874a69975ea186466937360

So when we rebase to 1.1.4 we should drop this patch.

Fix convscan problem
RESOURCE_LEAK (CWE-772): [#def10] [important]
exfatprogs-1.1.3/fsck/fsck.c:792: alloc_fn: Storage is returned from allocation function "malloc".
exfatprogs-1.1.3/fsck/fsck.c:792: var_assign: Assigning: "boot_sect" = storage returned from "malloc(512UL)".
exfatprogs-1.1.3/fsck/fsck.c:796: noescape: Resource "boot_sect" is not freed or pointed-to in "exfat_read".
exfatprogs-1.1.3/fsck/fsck.c:799: leaked_storage: Variable "boot_sect"

Resolves: rhbz#2077816
Signed-off-by: Pavel Reichl <preichl@redhat.com>
2022-05-10 12:53:29 +02:00

60 lines
1.3 KiB
RPMSpec

Name: exfatprogs
Version: 1.1.3
Release: 2%{?dist}
Summary: Userspace utilities for exFAT filesystems
License: GPLv2
URL: https://github.com/%{name}/%{name}
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
Patch0: 0001-fsck-fix-memory-leak.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}/exfatlabel
%{_sbindir}/fsck.exfat
%{_sbindir}/mkfs.exfat
%{_sbindir}/tune.exfat
%{_mandir}/man8/dump.exfat.*
%{_mandir}/man8/exfatlabel.*
%{_mandir}/man8/fsck.exfat.*
%{_mandir}/man8/mkfs.exfat.*
%{_mandir}/man8/tune.exfat.*
%changelog
* Mon May 09 2022 Pavel Reichl <preichl@redhat.com> - 1.1.3-2
- Fix memomry leak
* Wed Apr 20 2022 Pavel Reichl <preichl@redhat.com> - 1.1.3-1
- Rebase
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.2-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Tue Jun 1 2021 Pavel Reichl <preichl@redhat.com> - 1.1.2-1
- First build.