http://llvm.org/bugs/show_bug.cgi?id=6927
Summary: [NSAttributedString initWithString:] with a nil string
will raise an exception in post-Leopard linked apps
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Even though this is not explicitly stated in Apple's class reference, a console
log entry warns that calling [NSAttributedString initWithString:] with a nil
string will raise an exception in post-Leopard linked apps:
"-[NSConcreteAttributedString initWithString:] called with nil string argument.
This has undefined behavior and will raise an exception in post-Leopard linked
apps. This warning is displayed only once."
the static analyzer could assist finding cases where the string that's being
passed along is nil.
version = the one that shipped with xcode 3.2.2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs