Show More
@@ -572,6 +572,17 b' static PyObject *fm1readmarkers(PyObject' | |||||
572 | &offset, &stop)) { |
|
572 | &offset, &stop)) { | |
573 | return NULL; |
|
573 | return NULL; | |
574 | } |
|
574 | } | |
|
575 | if (offset < 0) { | |||
|
576 | PyErr_SetString(PyExc_ValueError, | |||
|
577 | "invalid negative offset in fm1readmarkers"); | |||
|
578 | return NULL; | |||
|
579 | } | |||
|
580 | if (stop > datalen) { | |||
|
581 | PyErr_SetString( | |||
|
582 | PyExc_ValueError, | |||
|
583 | "stop longer than data length in fm1readmarkers"); | |||
|
584 | return NULL; | |||
|
585 | } | |||
575 | dataend = data + datalen; |
|
586 | dataend = data + datalen; | |
576 | data += offset; |
|
587 | data += offset; | |
577 | markers = PyList_New(0); |
|
588 | markers = PyList_New(0); |
General Comments 0
You need to be logged in to leave comments.
Login now