[Bug locale/33164] New: iconv -o may produce executable files
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Jul 16 21:23:45 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33164
Bug ID: 33164
Summary: iconv -o may produce executable files
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: locale
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
Target Milestone: ---
Since
commit 8ef3cff9d1ceafe369f982d980678d749fb93bd2
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Sep 20 13:10:54 2024 +0200
iconv: Support in-place conversions (bug 10460, bug 32033)
Check if any of the input files overlaps with the output file, and use
a temporary file in this case, so that the input is no clobbered
before it is read. This fixes bug 10460. It allows to use iconv
more easily as a functional replacement for GNU recode.
The updated output buffer management truncates the output file
if there is no input, fixing bug 32033.
Reviewed-by: DJ Delorie <dj@redhat.com>
iconv -o may produce executable files (depending on umask) because the mode is
incorrectly specified as 0777, not 0666.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list