use memchr for ubuf_block_scan