Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103044857
D24786.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
700 B
Referenced Files
None
Subscribers
None
D24786.diff
View Options
Index: head/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
===================================================================
--- head/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
+++ head/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
@@ -316,8 +316,8 @@
case 'g': k = ConversionSpecifier::gArg; break;
case 'i': k = ConversionSpecifier::iArg; break;
case 'n':
- // Not handled, but reserved in OpenCL.
- if (!LO.OpenCL)
+ // Not handled, but reserved in OpenCL and FreeBSD kernel.
+ if (!LO.OpenCL && !isFreeBSDKPrintf)
k = ConversionSpecifier::nArg;
break;
case 'o': k = ConversionSpecifier::oArg; break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 5:19 AM (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14755212
Default Alt Text
D24786.diff (700 B)
Attached To
Mode
D24786: clang: Reject %n for __attribute__((format(__freebsd_kprintf__)))
Attached
Detach File
Event Timeline
Log In to Comment