recode dumps core if filename >= 200 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
recode (Debian) |
Fix Released
|
Unknown
|
|||
recode (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
If a filename has 200 or more characters, recode aborts, dumping core.
To reproduce:
1. Generate a filename with 200 characters:
paulo:~/tmp$ file=$(printf 'f%.0s' {1..200})
2. Create a file with this name:
paulo:~/tmp$ echo ã >$file
3. Try to recode this file:
paulo:~/tmp$ recode -v u8..latin1 $file
Request: UTF-8..
Shrunk to: UTF-8..ISO-8859-1
*** buffer overflow detected ***: recode terminated
Aborted (core dumped)
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: recode 3.6-23
ProcVersionSign
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Aug 3 19:09:07 2018
Dependencies:
gcc-8-base 8-20180414-1ubuntu2
libc6 2.27-3ubuntu1
libgcc1 1:8-20180414-
librecode0 3.6-23
InstallationDate: Installed on 2018-04-28 (97 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: recode
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in recode (Debian): | |
status: | Unknown → New |
Changed in recode (Debian): | |
status: | New → Fix Released |
Thanks for taking your time to report this issue and help making Ubuntu better.
I was able to reproduce this issue by attempting to run recode 3.6-23 on a very long file name on Ubuntu Cosmic. I also found what I believe to be a corresponding Debian bug report, so I have attached a bug watch.