assertion to guard buffer size limit
This commit is contained in:
parent
584878e0f8
commit
3ecd8047df
1 changed files with 7 additions and 6 deletions
|
|
@ -628,12 +628,13 @@ namespace lib {
|
|||
destroy(); \
|
||||
try \
|
||||
{ \
|
||||
return *new(&buf_) _CTOR_CALL_; \
|
||||
} \
|
||||
catch (...) \
|
||||
{ \
|
||||
placeDefault(); \
|
||||
throw; \
|
||||
REQUIRE (siz >= sizeof(TY)); \
|
||||
return *new(&buf_) _CTOR_CALL_; \
|
||||
} \
|
||||
catch (...) \
|
||||
{ \
|
||||
placeDefault(); \
|
||||
throw; \
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue