-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Expected behavior
Buffer<> swap all members
Actual behavior
Buffer<> swap don't swap _ownMem member, maybe crash
Steps to reproduce the problem
(please make this a SSCCE, if applicable and reasonable)
test code:
void test() {
char my[16];
Poco::Buffer<char> buffer(16);
Poco::Buffer<char> wrapper(my, sizeof(my));
buffer.swap(wrapper);
}
test(); // crash POCO version
1.7.9
Compiler and version
all
Operating system and version
all
Other relevant inofrmation
Reactions are currently unavailable