Ryan Lortie a768953760 Fix bug in strinfo
We can't search for a larger needle inside of a smaller haystack, and
unsigned integer subtraction tends to result in very large numbers
rather than small ones.

Add a check for this case and abort out immediately.

Also add a test case (lifted directly from the docs) that demonstrates
the problem.

Issue discovered and tracked down by Milan Bouchet-Valat
2010-06-19 11:41:30 -04:00
..
2010-06-19 11:41:30 -04:00
2010-06-07 13:48:42 -04:00
2010-04-17 01:48:05 -04:00
2009-11-24 13:02:05 +01:00
2010-06-09 10:32:36 +02:00
2010-05-10 08:07:28 -04:00
2010-05-10 08:07:28 -04:00
2010-05-10 08:07:28 -04:00
2010-06-19 11:41:30 -04:00
2010-06-09 10:32:12 +02:00
2010-04-17 01:48:05 -04:00