[Bug 475050] [NEW] faad2 doesn't hand long filenames or pathnames

Bijan Soleymani bijan at psq.com
Thu Nov 5 04:23:04 UTC 2009


Public bug reported:

If the filename or pathname is greater than about 187 characters/bytes
then faad2 has a buffer overflow. This is caused by faad copying the
filenames/pathnames into a static buffer, which is too small.

This is definitely a bug as ext2 supports filenames of 255 characters
and the limit for pathnames is four kilobytes or even more...

If you want to reproduce this then do something like:
faad aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.mp4

and faad should die. If it doesn't then just put it a few directories deep and that should do it. This is a real problem. As a workaround I modified faad to read from standard input and did:
faad < long_pathname

instead.

Thanks in advance,
Bijan

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

-- 
faad2 doesn't hand long filenames or pathnames
https://bugs.launchpad.net/bugs/475050
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list