Show More
@@ -572,6 +572,17 b' static PyObject *fm1readmarkers(PyObject' | |||
|
572 | 572 | &offset, &stop)) { |
|
573 | 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 | 586 | dataend = data + datalen; |
|
576 | 587 | data += offset; |
|
577 | 588 | markers = PyList_New(0); |
General Comments 0
You need to be logged in to leave comments.
Login now