diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2023-05-22 12:36:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-22 18:19:05 (GMT) |
commit | 068ff5878582743462341d0dae2b32fcdfb04099 (patch) | |
tree | 14114e8f4a6d5b3b88dcdd13220f047eddbdb0c6 | |
parent | a87ea777d459462471cfb5a6659e8cb250fb971c (diff) | |
download | CMake-068ff5878582743462341d0dae2b32fcdfb04099.zip CMake-068ff5878582743462341d0dae2b32fcdfb04099.tar.gz CMake-068ff5878582743462341d0dae2b32fcdfb04099.tar.bz2 |
KWSys 2023-05-22 (df6f93a4)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit df6f93a430449816d1d8c112d0743cf30601c5b7 (master).
Upstream Shortlog
-----------------
Brad King (1):
199aa713 RegularExpression: Tell clang-analyzer that program memory is initialized
-rw-r--r-- | RegularExpression.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/RegularExpression.cxx b/RegularExpression.cxx index f2f5143..b51e16d 100644 --- a/RegularExpression.cxx +++ b/RegularExpression.cxx @@ -378,6 +378,10 @@ bool RegularExpression::compile(const char* exp) return false; } +#ifdef __clang_analyzer__ /* Convince it that the program is initialized. */ + memset(this->program, 0, comp.regsize); +#endif + // Second pass: emit code. comp.regparse = exp; comp.regnpar = 1; |