[cfe-commits] r45110 - /cfe/trunk/Sema/SemaChecking.cpp
Ted Kremenek
kremenek at apple.com
Mon Dec 17 10:38:32 PST 2007
Author: kremenek
Date: Mon Dec 17 12:38:31 2007
New Revision: 45110
URL: http://llvm.org/viewvc/llvm-project?rev=45110&view=rev
Log:
Format string checker: asprintf does not pass argumnents via va_list.
Modified:
cfe/trunk/Sema/SemaChecking.cpp
Modified: cfe/trunk/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaChecking.cpp?rev=45110&r1=45109&r2=45110&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/Sema/SemaChecking.cpp Mon Dec 17 12:38:31 2007
@@ -98,7 +98,7 @@
case id_fprintf: format_idx = 1; break;
case id_sprintf: format_idx = 1; break;
case id_snprintf: format_idx = 2; break;
- case id_asprintf: format_idx = 1; HasVAListArg = true; break;
+ case id_asprintf: format_idx = 1; break;
case id_vsnprintf: format_idx = 2; HasVAListArg = true; break;
case id_vasprintf: format_idx = 1; HasVAListArg = true; break;
case id_vfprintf: format_idx = 1; HasVAListArg = true; break;
More information about the cfe-commits
mailing list