https://github.com/cdeil/taldcrofts-nightmare
Try to crash Astropy table!
https://github.com/cdeil/taldcrofts-nightmare
Last synced: 11 months ago
JSON representation
Try to crash Astropy table!
- Host: GitHub
- URL: https://github.com/cdeil/taldcrofts-nightmare
- Owner: cdeil
- License: gpl-3.0
- Created: 2016-12-09T14:33:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-09T14:49:10.000Z (over 9 years ago)
- Last Synced: 2025-04-03T02:31:17.958Z (about 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# taldcrofts-nightmare
Repo: https://github.com/cdeil/taldcrofts-nightmare
## What is this?
Let's try to crash Astropy table!
This is a test for the Astropy fast CSV table code.
The goal is to see if we can make it segfault on invalid input.
See https://github.com/astropy/astropy/pull/5534#issuecomment-264434989
The idea is to use https://hypothesis.readthedocs.io/ to throw random
invalid ascii table files at it and see if it crashes.
## How to run it
First install `astropy` and `hypothesis`.
Then execute this and see what happens:
python2 test_taldcroft.py
python3 test_taldcroft.py
## TODO
- How can we run the parser without hitting the disk, looking for files?
- Set up grid of different parser configs
- Figure out what valid inputs are (unicode?) and valid responses (ValueError?)
- Figure out how to configure the hypothesis text strategy to test this well