[PATCH] D35652: [clang] Fix handling of "%zd" format specifier in scanf

Alexander Shaposhnikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 19 16:35:39 PDT 2017


alexshap created this revision.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D35652

Files:
  lib/Analysis/ScanfFormatString.cpp
  test/Sema/format-strings-fixit-ssize_t.c
  test/Sema/format-strings-scanf.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35652.107411.patch
Type: text/x-patch
Size: 4600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170719/954d0fca/attachment-0001.bin>


More information about the cfe-commits mailing list