am e5abbe5d: (-s ours) Add buffer wrap checks and disable throwing of std::bad_alloc.

* commit 'e5abbe5d3d4128be6771c80890dc5cd9b2a67a24':
  Add buffer wrap checks and disable throwing of std::bad_alloc.