History log of /llvm-project/clang/test/Sema/format-strings.c (Results 51 – 75 of 128)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9bc9bcc2 16-Feb-2012 Hans Wennborg <hans@hanshq.net>

Format string analysis: give 'q' its own enumerator.

This is in preparation for being able to warn about 'q' and other
non-standard format string features.

It also allows us to print its name corre

Format string analysis: give 'q' its own enumerator.

This is in preparation for being able to warn about 'q' and other
non-standard format string features.

It also allows us to print its name correctly.

llvm-svn: 150697

show more ...


# f81b9d17 13-Feb-2012 Hans Wennborg <hans@hanshq.net>

Fix typo in PrintfConversionSpecifier::isDoubleArg()

This makes the printf diagnostics issue warnigns for %a, %A, %e, etc.
when used with the wrong argument.

llvm-svn: 150370


# 6567f48f 07-Feb-2012 Jean-Daniel Dupas <devlists@shadowlab.org>

non-literal strftime format string is not unsafe.

llvm-svn: 150009


# cb197b0e 31-Jan-2012 Jean-Daniel Dupas <devlists@shadowlab.org>

FormatCheckers should emit all diagnostics using EmitFormatDiagnostic().

llvm-svn: 149394


# 028573e7 30-Jan-2012 Jean-Daniel Dupas <devlists@shadowlab.org>

Update on format attribute handling.
- Remove the printf0 special handling as we treat it as printf anyway.
- Perform basic checks (non-literal, empty) for all formats and not only printf/scanf.

llv

Update on format attribute handling.
- Remove the printf0 special handling as we treat it as printf anyway.
- Perform basic checks (non-literal, empty) for all formats and not only printf/scanf.

llvm-svn: 149236

show more ...


# 6fa57279 24-Jan-2012 Ted Kremenek <kremenek@apple.com>

Teach scanf/printf checking about '%Ld' and friends (a GNU extension). Fixes PR 9466.

llvm-svn: 148859


# e7b9d434 20-Jan-2012 Ted Kremenek <kremenek@apple.com>

Tighten format string diagnostic and make it a bit clearer (and a bit closer to GCC's).

llvm-svn: 148579


Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2
# 03cf7b70 28-Oct-2011 Richard Trieu <rtrieu@google.com>

Fix for PR9751 to change the behavior of -Wformat warnings. If the format
string is part of the function call, then there is no difference. If the
format string is not, the warning will point to th

Fix for PR9751 to change the behavior of -Wformat warnings. If the format
string is part of the function call, then there is no difference. If the
format string is not, the warning will point to the call site and a note
will point to where the format string is.

Fix-it hints for strings are moved to the note if a note is emitted. This will
prevent changes to format strings that may be used in multiple places.

llvm-svn: 143168

show more ...


# 74e82bd1 25-Oct-2011 Ted Kremenek <kremenek@apple.com>

Tweak printf format string parsing to accept 'hh' conversion specifier to accept any char, not just signed char. Fixes <rdar://problem/10303638>.

llvm-svn: 142908


Revision tags: llvmorg-3.0.0-rc1
# 6e302b2e 29-Sep-2011 Ted Kremenek <kremenek@apple.com>

Do not warn about empty format strings when there are no data arguments. Fixes <rdar://problem/9473155>.

llvm-svn: 140777


# 183875f6 27-Aug-2011 Ted Kremenek <kremenek@apple.com>

Control 'invalid conversion specifier' warnings under a subflag (-Wformat-invalid-specifier) of -Wformat. Fixes <rdar://problem/10031930>.

llvm-svn: 138686


# d0c2afd2 14-Jul-2011 Ted Kremenek <kremenek@apple.com>

Revert r135147 and r135075. The consensus was that this wasn't the right thing to do.

llvm-svn: 135152


# ba84cf53 14-Jul-2011 Ted Kremenek <kremenek@apple.com>

Reapply r135075, but modify format-strings.c and format-strings-fixit.c test cases to be more portable with an explicit target triple.

llvm-svn: 135134


# cc47e0fa 13-Jul-2011 Ted Kremenek <kremenek@apple.com>

Re-relax conversion specifier checking for printf format strings and conversion specifiers. My recent change was a mistake.

llvm-svn: 135048


# 1d3fb8af 13-Jul-2011 Ted Kremenek <kremenek@apple.com>

Fix inversion in argument type checking for format strings with conversion specifiers for character types.

llvm-svn: 135046


# 88336839 15-Jun-2011 Douglas Gregor <dgregor@apple.com>

Don't add redundant FormatAttr, ConstAttr, or NoThrowAttr attributes,
either imlicitly (for builtins) or explicitly (due to multiple
specification of the same attributes). Fixes <rdar://problem/96120

Don't add redundant FormatAttr, ConstAttr, or NoThrowAttr attributes,
either imlicitly (for builtins) or explicitly (due to multiple
specification of the same attributes). Fixes <rdar://problem/9612060>.

llvm-svn: 133045

show more ...


Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1
# a8890833 24-Feb-2011 Ted Kremenek <kremenek@apple.com>

Don't warn about using PredefinedExprs as format string literals. These never can be a real security issue.

Fixes PR 9314.

llvm-svn: 126447


# 468b5cbd 21-Feb-2011 Chandler Carruth <chandlerc@gmail.com>

Allow -Wformat to be enabled without -Wformat-security. GCC gates
-Wformat-security on -Wformat, not vice-versa.

Fixes PR8486. Patch by Oleg Slezberg.

llvm-svn: 126096


# bf4832cd 08-Jan-2011 Ted Kremenek <kremenek@apple.com>

Add semantic checking that the "thousands grouping"
prefix in a printf format string is matched
with the appropriate conversion specifier.

llvm-svn: 123055


# a322cae0 08-Jan-2011 Ted Kremenek <kremenek@apple.com>

Add printf format string parsing support for '
prefix to format conversions (POSIX extension).

llvm-svn: 123054


# 9e618ed1 02-Dec-2010 Ted Kremenek <kremenek@apple.com>

Fix range in printf warnings for invalid conversion specifiers.

llvm-svn: 120735


# a369f8dc 21-Nov-2010 Anders Carlsson <andersca@mac.com>

The 'X' printf type has a valid alternative form. Fixes PR8641.

llvm-svn: 119946


# 12a37de0 21-Oct-2010 Ted Kremenek <kremenek@apple.com>

Previously, the printf warnings would say your arguments type was 'int' when it was really a 'char'
or a 'short'. This fixes that and allows the hints to suggest 'h' modifiers for small ints.

Patch

Previously, the printf warnings would say your arguments type was 'int' when it was really a 'char'
or a 'short'. This fixes that and allows the hints to suggest 'h' modifiers for small ints.

Patch by Justin Bogner!

llvm-svn: 116996

show more ...


Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2
# b8176da3 09-Sep-2010 Ted Kremenek <kremenek@apple.com>

Check format strings when a called function has more than one FormatAttr (one for 'scanf' and one for 'printf'). Fixes <rdar://problem/8409437>.

llvm-svn: 113472


# 1520dae6 09-Sep-2010 Ted Kremenek <kremenek@apple.com>

It appears that technically a null format string is not warned under -Wformat-nonliteral, as
the function processing the format string can decided whether or not to accept a null format string (e.g.,

It appears that technically a null format string is not warned under -Wformat-nonliteral, as
the function processing the format string can decided whether or not to accept a null format string (e.g., asl_log). Fixes <rdar://problem/8269537>.

llvm-svn: 113469

show more ...


123456