Skip to content

Commit 91a803d

Browse files
committed
Reserve() is sometimes called when stackTop_ is null. The assert is invalid.
1 parent 9d8df28 commit 91a803d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/rapidjson/internal/stack.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class Stack {
113113
// Expansion is run very infrequently, so it is moved to another (probably non-inline) function.
114114
template<typename T>
115115
RAPIDJSON_FORCEINLINE void Reserve(size_t count = 1) {
116-
RAPIDJSON_ASSERT(stackTop_);
117116
// Expand the stack if needed
118117
if (RAPIDJSON_UNLIKELY(stackTop_ + sizeof(T) * count > stackEnd_))
119118
Expand<T>(count);

0 commit comments

Comments
 (0)