fold: fix processing of malformed UTF-8 sequences
Resolves: RHEL-140116
This commit is contained in:
parent
068a1ad058
commit
1c419d4d26
@ -1968,7 +1968,7 @@ index 941ad11..bdc466d 100644
|
||||
/* Look for the last blank. */
|
||||
while (logical_end)
|
||||
{
|
||||
@@ -214,13 +251,224 @@ fold_file (char const *filename, size_t width)
|
||||
@@ -214,13 +251,225 @@ fold_file (char const *filename, size_t width)
|
||||
line_out[offset_out++] = c;
|
||||
}
|
||||
|
||||
@ -2050,6 +2050,7 @@ index 941ad11..bdc466d 100644
|
||||
+
|
||||
+ /* Get a wide character. */
|
||||
+ state_bak = state;
|
||||
+ convfail = 0;
|
||||
+ mblength = mbrtowc ((wchar_t *)&wc, bufpos, buflen, &state);
|
||||
+
|
||||
+ switch (mblength)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: A set of basic GNU tools commonly used in shell scripts
|
||||
Name: coreutils
|
||||
Version: 9.5
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
# some used parts of gnulib are under various variants of LGPL
|
||||
License: GPL-3.0-or-later AND GFDL-1.3-no-invariants-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later
|
||||
Url: https://www.gnu.org/software/coreutils/
|
||||
@ -273,6 +273,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
||||
* Thu Jan 15 2026 Lukáš Zaoral <lzaoral@redhat.com> - 9.5-7
|
||||
- fold: fix processing of malformed UTF-8 sequences (RHEL-140116)
|
||||
|
||||
* Tue Nov 26 2024 Lukáš Zaoral <lzaoral@redhat.com> - 9.5-6
|
||||
- Fix affinity mask handling in nproc for large CPU counts (RHEL-68961)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user