[all-commits] [llvm/llvm-project] 7150c6: [sanitizer] scanf interceptor: fix write size for ...
DianQK via All-commits
all-commits at lists.llvm.org
Tue Sep 5 00:02:31 PDT 2023
Branch: refs/heads/release/17.x
Home: https://github.com/llvm/llvm-project
Commit: 7150c6d4ee4090e6908ed65abd433f561c70877c
https://github.com/llvm/llvm-project/commit/7150c6d4ee4090e6908ed65abd433f561c70877c
Author: Fangrui Song <i at maskray.me>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
M compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
Log Message:
-----------
[sanitizer] scanf interceptor: fix write size for %mc/%mC/%mS
When the optional assignment-allocation character 'm' (Extension to the
ISO C standard) is present, we currently use internal_strlen(buf)+1 for
all of cCsS[ (D85350). Fix cCS to use the correct size.
Fix https://github.com/llvm/llvm-project/issues/61768
Reviewed By: #sanitizers, vitalybuka
Differential Revision: https://reviews.llvm.org/D158485
(cherry picked from commit beeb37a8f3275281be305d2d1afe35ca053e21c0)
Commit: 175a130b9f84583267ba04c3298cd73b02d5b76a
https://github.com/llvm/llvm-project/commit/175a130b9f84583267ba04c3298cd73b02d5b76a
Author: Elizabeth Andrews <elizabeth.andrews at intel.com>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M clang/lib/Sema/SemaExprCXX.cpp
Log Message:
-----------
[NFC][Clang] Fix static analyzer concern about null value dereference
Differential Revision: https://reviews.llvm.org/D157554
Commit: c2c9c0f1388e435c4b2416d658ea005d5e724202
https://github.com/llvm/llvm-project/commit/c2c9c0f1388e435c4b2416d658ea005d5e724202
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/AST/ExprConcepts.h
M clang/lib/Sema/SemaExprCXX.cpp
M clang/lib/Sema/SemaTemplateInstantiate.cpp
A clang/test/SemaCXX/concept-crash-on-diagnostic.cpp
M clang/test/SemaCXX/concept-fatal-error.cpp
Log Message:
-----------
[clang] Construct ExprRequirement with SubstitutionDiagnostic on SubstFailure
We're expecting a SubstitutionDiagnostic in diagnoseUnsatisfiedRequirement
if the status of ExprRequirement is SubstFailure. Previously, the Requirement
was created with Expr on SubstFailure by mistake, which could lead to the
assertion failure in the subsequent diagnosis.
Fixes https://github.com/clangd/clangd/issues/1726
Fixes https://github.com/llvm/llvm-project/issues/64723
Fixes https://github.com/llvm/llvm-project/issues/64172
In addition, this patch also fixes an invalid test from D129499.
Reviewed By: erichkeane
Differential Revision: https://reviews.llvm.org/D158061
Commit: 5b4513afa40647eab89c5a55ab2d1c893229e873
https://github.com/llvm/llvm-project/commit/5b4513afa40647eab89c5a55ab2d1c893229e873
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M clang-tools-extra/clangd/ClangdServer.cpp
M clang-tools-extra/clangd/TUScheduler.cpp
M clang-tools-extra/clangd/index/Background.cpp
A clang-tools-extra/clangd/test/infinite-instantiation.test
M clang-tools-extra/clangd/tool/ClangdMain.cpp
M clang/lib/Frontend/FrontendAction.cpp
Log Message:
-----------
[clang][clangd] Ensure the stack bottom before building AST
`clang::runWithSufficientStackSpace` requires the address of the
initial stack bottom to prevent potential stack overflows.
In addition, add a fallback to ASTFrontendAction in case any client
forgets to call it when not through CompilerInstance::ExecuteAction,
which is rare.
Fixes https://github.com/clangd/clangd/issues/1745.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D158967
(cherry picked from commit e257c0a9190637e44e292271103a13d70bec4b03)
Commit: 9597525dc133dd05a4909ac4e2f18ee946cd5785
https://github.com/llvm/llvm-project/commit/9597525dc133dd05a4909ac4e2f18ee946cd5785
Author: Takuya Shimizu <shimizu2486 at gmail.com>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
Log Message:
-----------
Revert "[clang][Docs] Added release note for D142609"
The associated commit was reverted and backported in a93ca35, so this
release note line should also be removed.
This reverts commit 061e855767dbe0821d81a8d47158f468dd00ae5f.
Commit: ae9c45b112598aa9a411ffe4cebd213d7f9186b6
https://github.com/llvm/llvm-project/commit/ae9c45b112598aa9a411ffe4cebd213d7f9186b6
Author: DianQK <dianqk at dianqk.net>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
A llvm/test/Transforms/JumpThreading/invalidate-lvi.ll
Log Message:
-----------
[JumpThreading][NFC] Pre-commit for invalid LVI.
(cherry picked from commit 5855a4be9cbc3c4584d8a1632886c347044dfbef)
Commit: dccf183bb26073c6b818ea24ec31ff87563d73e2
https://github.com/llvm/llvm-project/commit/dccf183bb26073c6b818ea24ec31ff87563d73e2
Author: DianQK <dianqk at dianqk.net>
Date: 2023-09-05 (Tue, 05 Sep 2023)
Changed paths:
M llvm/include/llvm/Analysis/LazyValueInfo.h
M llvm/lib/Analysis/LazyValueInfo.cpp
M llvm/lib/Transforms/Scalar/JumpThreading.cpp
M llvm/test/Transforms/JumpThreading/invalidate-lvi.ll
Log Message:
-----------
[JumpThreading] Invalidate LVI after `combineMetadataForCSE`.
(cherry picked from commit 7ded71b1e43fff0be3acb74038bfea87f38d5cfa)
Compare: https://github.com/llvm/llvm-project/compare/ecea6d6828d6...dccf183bb260
More information about the All-commits
mailing list