docopt / docopt.cpp

C++11 port of docopt
Boost Software License 1.0
1.04k stars 146 forks source link

Resolve MSAN use-of-uninitialized-value #150

Closed acgetchell closed 2 years ago

acgetchell commented 2 years ago

Fix #149

jaredgrubb commented 2 years ago

For any object type, C++ will invoke the constructor by default (it only doesn't do that if it's a plain-old-data and lacks a user-provided constructor). All STL types are safe to use in this way. If there's a MSAN bug, this isn't the right fix. We can follow up in the issue.