abv
4db4247a0b
0024836: Stack overflow when raising exception in low memory condition
...
Standard_OutOfMemory exception is refactored so as to avoid memory allocations (which will likely fail) when it is raised:
- method NewInstance() returns static instance (singleton)
- method Raise() raises copy of that singleton, resetting its message string
- message string is stored as field, not allocated dynamically (thus maximum message length is limited by buffer size)
Class Standard_Failure slightly revised: method Destroy() is merged to destructor, methods Get/SetMessageString() are made virtual.
Add test case for the bug
2016-01-21 15:49:51 +03:00
..
2016-01-21 15:49:51 +03:00
2015-07-12 07:42:38 +03:00
2015-10-01 13:39:24 +03:00
2015-10-01 13:39:24 +03:00
2015-07-12 07:42:38 +03:00
2015-07-11 12:07:04 +03:00
2015-11-05 12:04:05 +03:00
2015-10-01 13:39:24 +03:00
2015-12-04 14:15:06 +03:00
2015-12-04 13:57:58 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-11-06 07:54:57 +03:00
2015-11-11 09:43:26 +03:00
2015-07-12 07:42:38 +03:00
2015-11-06 07:54:57 +03:00
2015-10-01 13:39:24 +03:00
2016-01-21 15:49:51 +03:00
2016-01-21 15:49:51 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-12-22 14:15:01 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-10-15 11:27:46 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-09-24 14:13:06 +03:00
2016-01-21 15:49:51 +03:00
2015-09-24 14:13:06 +03:00
2015-07-12 07:42:38 +03:00
2015-11-05 12:04:05 +03:00
2015-11-05 12:04:05 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2016-01-21 15:49:51 +03:00
2016-01-21 15:49:51 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-12-04 14:15:06 +03:00
2015-12-17 18:03:34 +03:00
2015-07-11 11:05:31 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-11-19 14:27:06 +03:00
2015-11-19 14:27:06 +03:00
2015-11-05 12:04:05 +03:00
2015-10-15 11:26:55 +03:00
2015-11-05 12:04:05 +03:00
2015-07-12 07:42:38 +03:00
2015-12-04 13:57:58 +03:00
2015-12-04 13:57:58 +03:00
2015-12-17 16:41:29 +03:00
2016-01-03 15:17:05 +03:00
2015-07-12 07:42:38 +03:00
2015-07-12 07:42:38 +03:00
2015-09-24 14:13:06 +03:00
2015-09-24 14:13:06 +03:00
2015-12-23 13:40:41 +03:00
2015-11-05 12:04:05 +03:00
2015-08-19 19:03:16 +03:00