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
..
2014-11-10 09:44:38 +00:00
2014-08-07 21:56:37 +00:00
2014-06-28 03:56:17 +00:00
2014-12-12 19:56:36 +00:00
2014-06-28 03:56:17 +00:00
2014-08-07 21:56:42 +00:00
2014-06-28 03:56:17 +00:00
2014-06-28 03:56:17 +00:00
2015-03-12 10:20:53 +00:00
2012-11-20 12:32:18 +00:00
2014-01-19 16:37:57 +00:00
2013-10-23 01:34:18 +00:00
2015-03-12 18:51:31 +00:00
2015-02-25 10:18:11 +00:00
2014-06-28 03:56:17 +00:00
2014-12-20 00:04:01 +00:00
2014-06-28 03:56:17 +00:00
2014-06-28 03:56:17 +00:00
2014-05-01 14:47:27 +00:00
2014-07-22 17:30:05 +00:00
2014-06-28 03:56:17 +00:00
2014-06-28 03:56:17 +00:00
2013-10-22 08:22:19 +00:00
2012-11-20 12:32:18 +00:00
2015-01-06 05:28:37 +00:00
2014-01-23 21:30:31 +00:00
2015-01-14 11:15:57 +00:00
2014-10-25 15:16:19 +00:00
2013-10-25 19:19:12 +00:00
2014-10-17 06:58:04 +00:00
2014-05-19 16:05:42 +00:00
2013-05-30 01:19:02 +00:00
2013-11-27 14:25:06 +00:00
2013-10-22 08:22:19 +00:00
2014-10-21 07:31:21 +00:00
2015-03-19 03:58:25 +00:00
2012-11-20 12:32:18 +00:00
2013-08-07 00:00:48 +00:00
2014-04-06 02:20:42 +00:00
2012-11-20 12:32:18 +00:00
2014-05-19 16:08:15 +00:00
2013-10-22 08:22:19 +00:00
2013-10-23 09:54:58 +00:00