Skip to content
Commit 55fb053f authored by Marshall Clow's avatar Marshall Clow
Browse files

When filling a vector<bool> with stuff, initialize the last word of the...

When filling a vector<bool> with stuff, initialize the last word of the storage that you're touching. Otherwise, when we lay down the bits with operator&=, we get UB from reading uninitialized memory. Fixes Bug 39354. Thanks to David Wagner for the bug report.

llvm-svn: 345067
parent 8c4796de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment