Add patches to avoid accessing unallocated memory.
buffer_consume_to_mark() was trying to use Boyer-Moore search to
find specified mark string but implementation was walking through
unallocated memory.
PR: 227543
Submitted by: Jeremy Chadwick <jdc@koitsu.org>