Skip to content

Scrolling in CSV data with newlines in columns is able to crash tabview #16

@wasamasa

Description

@wasamasa

If I display a file where multiple cells in a column have newlines in them and scroll along, this is able to crash tabview with the following traceback:

Traceback (most recent call last):
  File "/usr/bin/tabview", line 41, in <module>
    view(data)
  File "/usr/lib/python3.4/site-packages/tabview/tabview.py", line 530, in view
    curses.wrapper(main, data)
  File "/usr/lib/python3.4/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python3.4/site-packages/tabview/tabview.py", line 466, in main
    Viewer(stdscr, data).run()
  File "/usr/lib/python3.4/site-packages/tabview/tabview.py", line 305, in run
    self.handle_keys()
  File "/usr/lib/python3.4/site-packages/tabview/tabview.py", line 332, in handle_keys
    self.display()
  File "/usr/lib/python3.4/site-packages/tabview/tabview.py", line 414, in display
    " {}".format(s))
_curses.error: addwstr() returned ERR

I still have to extract a minimal reproducable case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions