Closed SaulAryehKohn closed 6 years ago
For me, 265 characters works, but 266 characters crashes:
$ python -c "import aipy.miriad; aipy.miriad.UV('z' * 266)"
Segmentation fault
Probably related to the last of these statically-sized buffers:
$ git grep 'define MAXPATH'
aipy_src/_miriad/mir/dio.c:#define MAXPATH 1024
aipy_src/_miriad/mir/dirs.c:#define MAXPATH 128
aipy_src/_miriad/mir/hio.h:#define MAXPATH 256
This should be fixed on master. I will work on rolling a new release but first I want to get the Travis integration actually working. And Travis is having problem right now.
The fix should now be rolled out on conda-forge, in version 2.1.8.
This issue occurs for me if I'm trying to read a file more than 9 directories deep. I have yet to do systematic testing for a definitive string length.