lower than that of any existing segment, it got it wrong due to the confusing
SkipList API. I wonder how many more bugs like that there are...?
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2596
VG_(printf)("find_map_space: ret starts as %p-%p client=%d\n",
ret, ret+len, for_client);
- for(s = VG_(SkipList_Find)(&sk_segments, &ret);
+ s = VG_(SkipList_Find)(&sk_segments, &ret);
+ if (s == NULL)
+ s = VG_(SkipNode_First)(&sk_segments);
+
+ for( ;
s != NULL && s->addr < (ret+len);
s = VG_(SkipNode_Next)(&sk_segments, s))
{