How the LZ77 compression algorithm handles the case when the entire look-ahead buffer is matched in the search buffer
A simple solution:  your look ahead buffer is no smaller than your longest match length. 
  As long as the start position is in the Search Buffer(a min of 1 byte), then the look-ahead buffer will have that one extra byte available to use as the follow byte