This is a follow-up for https://reviews.llvm.org/D35427
ScanfFormatString.cpp has the same issue (incorrect handling of
the specifiers for ssize_t) and this diff fixes it and adds tests.
Test plan: make check-all
Paths
| Differential D35652
[clang] Fix handling of "%zd" format specifier in scanf ClosedPublic Authored by alexander-shaposhnikov on Jul 19 2017, 4:35 PM.
Details Summary This is a follow-up for https://reviews.llvm.org/D35427 Test plan: make check-all
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 20 2017, 7:43 AM Closed by commit rL308662: [clang] Fix handling of "%zd" in scanf (authored by alexander-shaposhnikov). · Explain WhyJul 20 2017, 1:13 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 107411 lib/Analysis/ScanfFormatString.cpp
test/Sema/format-strings-fixit-ssize_t.ctest/Sema/format-strings-scanf.c
|
c99 is necessary for "zd"