]> git.ipfire.org Git - thirdparty/squid.git/commit - src/base/RegexPattern.h
Bug 4561: Replace use of default move operators with explicit implementation
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 13 Aug 2016 10:12:06 +0000 (22:12 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 13 Aug 2016 10:12:06 +0000 (22:12 +1200)
commitb9a9207b64526dc5f0a137896b01d578806aee2f
treeb97a5bb4fad0707dccacbad5dba00f7208f6a5ff
parent6082a0e2e301e4d4a731fe82948eb196585499b2
Bug 4561: Replace use of default move operators with explicit implementation

The '= default' syntax for move assignment operator and constructor can
result in double-free crashes when the class type containspointer members
since the trivial move uses std::memmove() which does not perform the
required zeroing/nullptr of the temporary source object being moved.
src/base/CbcPointer.h
src/base/RegexPattern.cc
src/base/RegexPattern.h
src/security/LockingPointer.h