Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148377825
D24786.1786530030.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
700 B
Referenced Files
None
Subscribers
None
D24786.1786530030.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
Wed, Aug 12, 10:20 AM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29399123
Default Alt Text
D24786.1786530030.diff (700 B)
Attached To
Mode
D24786: clang: Reject %n for __attribute__((format(__freebsd_kprintf__)))
Attached
Detach File
Event Timeline
Log In to Comment