Gallopsled/pwntools — pull request #84 by zachriggle (2014-08-23 03:13:06+00:00)
Title: Catch invalid characters early in cyclic_find()

Catch invalid characters early in cyclic_find(). Sometimes I forget to `u32()` the data, and it searches forever for eight bytes of irrelevant data.

Without this patch, the following will hang ~forever.

```python
not_in_alphabet = '61616161'
cyclic_find(not_in_alphabet)
```