*** This bug is a duplicate of bug 1643167 ***
https://bugs.launchpad.net/bugs/1643167
** This bug has been marked a duplicate of bug 1643167
command-not-found crash on inreasonably long input
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscrib
The bug still exists in Ubuntu 16.04.
The examples below use a 1 GB memory limit.
3000-character input: 17 seconds, no crash.
4000-character input: 0.8 seconds, MemoryError crash.
$ (ulimit -v 100; time /usr/lib/command-not-found -- "$(python -c 'print
"x"*3000')")
x
** Changed in: command-not-found
Status: Confirmed => Fix Released
** Changed in: command-not-found (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bu
I temporarily fixed my own installation of cnf by changing line 89 of
/usr/lib/command-not-found from:
if len(args) == 1:
to
if len(args) == 1 and len(args[0])<100:
That means cnf will not do anything for commands longer than 100
characters. But seriously, can anyone tell me a command tha
** Changed in: command-not-found (Ubuntu)
Status: New => Confirmed
--
Command not found consumes lots of memory and CPU for longer input
https://bugs.launchpad.net/bugs/576590
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ub