Incorrect .clicompanion2 file causes the program to crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CLI Companion |
Fix Released
|
Low
|
Unassigned |
Bug Description
With an empty line or a bad formatted command in the .clicompanion2 command file, the program crashes, for example:
1 perl Test::Class
2 ls -l\tffff
3 ls -a\t\tprueba6s
4 ls ? ?\tprueba tt\tdddfdf
5 rtrte\t\t
6
$ ./clicompanion
Using locale in system
Traceback (most recent call last):
File "./clicompanion", line 65, in <module>
run()
File "/home/
main_window = MainWindow()
File "/home/
self.setup()
File "/home/
cheatlines.
IndexError: list index out of range
Related branches
- Marek Bardoński: Approve
-
Diff: 2007 lines (+779/-533)7 files modifiedclicompanion (+6/-4)
clicompanionlib/config.py (+237/-26)
clicompanionlib/controller.py (+206/-252)
clicompanionlib/menus_buttons.py (+27/-25)
clicompanionlib/tabs.py (+77/-42)
clicompanionlib/utils.py (+142/-3)
clicompanionlib/view.py (+84/-181)
Changed in clicompanion: | |
status: | Confirmed → Fix Committed |
Changed in clicompanion: | |
status: | Fix Committed → Fix Released |