Fixed bug in LayoutGuided/SearchOverlaps dealing with result buffer overflows.