Avoid memory overruns when buffer_length is too small (when fetching binary data in prepared statements)