Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion clang/docs/analyzer/checkers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ as error. Specifically on x86/x86-64 target if the pointer address space is
dereference is not defined as error. See `X86/X86-64 Language Extensions
<https://clang.llvm.org/docs/LanguageExtensions.html#memory-references-to-specified-segments>`__
for reference.

If the analyzer option ``suppress-dereferences-from-any-address-space`` is set
to true (the default value), then this checker never reports dereference of
pointers with a specified address space. If the option is set to false, then
Expand Down Expand Up @@ -1664,6 +1664,23 @@ Warn on uses of the 'bzero' function.
bzero(ptr, n); // warn
}

.. _security-insecureAPI-decodeValueOfObjCType:

security.insecureAPI.decodeValueOfObjCType (C)
""""""""""""""""""""""""""""""""""""""""""""""
Warn on uses of the Objective-C method ``-decodeValueOfObjCType:at:``.

.. code-block:: objc

void test(NSCoder *decoder) {
unsigned int x;
[decoder decodeValueOfObjCType:"I" at:&x]; // warn
}

This diagnostic is emitted only on Apple platforms where the safer
``-decodeValueOfObjCType:at:size:`` alternative is available
(iOS 11+, macOS 10.13+, tvOS 11+, watchOS 4.0+).

.. _security-insecureAPI-getpw:

security.insecureAPI.getpw (C)
Expand Down
Loading