adrian a68ab2f735 Fix the label search routine in geom_map to not trip up on '\0' bytes.
* Just do the buf check early and fail out
* If the offset being searched is:

00110000  00 b5 7e 45 61 e2 76 d3  c1 78 dd 15 95 cd 1f f1  |..~Ea.v..x......|

.. and the match string is '.!/bin/sh'

.. then it'll set the match string[0] to '\0', do a strncmp() against
the read buffer, find it's matching two zero-length strings, and think
that's where to start.

MFC after:	2 weeks
2015-03-19 03:58:25 +00:00
..
2015-03-17 18:32:28 +00:00
2015-03-13 02:49:55 +00:00
2015-03-16 00:10:03 +00:00
2015-03-12 20:14:48 +00:00
2015-03-01 00:22:16 +00:00
2015-02-02 16:07:07 +00:00
2015-03-16 00:10:03 +00:00
2014-12-27 07:07:37 +00:00
2015-03-15 11:58:52 +00:00