diff options
author | Jose <jose@zeroc.com> | 2011-12-21 23:52:34 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2011-12-21 23:52:34 +0100 |
commit | c750ad7966d5efd0b2ec1fb0ce47ebc8c826b36a (patch) | |
tree | 0a522be5b4ebff3caa471bc7b4e3b952da5e165d /cpp/src/Ice/Buffer.cpp | |
parent | ICE-4592 UTF8BufferI getMoreBytes (diff) | |
download | ice-c750ad7966d5efd0b2ec1fb0ce47ebc8c826b36a.tar.bz2 ice-c750ad7966d5efd0b2ec1fb0ce47ebc8c826b36a.tar.xz ice-c750ad7966d5efd0b2ec1fb0ce47ebc8c826b36a.zip |
ICE-4598 Running out of memory while allocating a marshaling buffer
Diffstat (limited to 'cpp/src/Ice/Buffer.cpp')
-rw-r--r-- | cpp/src/Ice/Buffer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/Ice/Buffer.cpp b/cpp/src/Ice/Buffer.cpp index 516721d8fd7..9b3956c4f5d 100644 --- a/cpp/src/Ice/Buffer.cpp +++ b/cpp/src/Ice/Buffer.cpp @@ -75,9 +75,7 @@ IceInternal::Buffer::Container::reserve(size_type n) if(!p) { _capacity = c; // Restore the previous capacity. - SyscallException ex(__FILE__, __LINE__); - ex.error = getSystemErrno(); - throw ex; + throw std::bad_alloc(); } _buf = p; } |