Public bug reported:

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..:libiconv:..ISO-8859-1
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
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
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-1ubuntu2
 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)

** Affects: recode (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to recode in Ubuntu.
https://bugs.launchpad.net/bugs/1785336

Title:
  recode dumps core if filename >= 200 characters

Status in recode package in Ubuntu:
  New

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..:libiconv:..ISO-8859-1
  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
  ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
  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-1ubuntu2
   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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/recode/+bug/1785336/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to