[LLVMbugs] [Bug 6927] New: [NSAttributedString initWithString:] with a nil string will raise an exception in post-Leopard linked apps
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Apr 24 13:56:04 PDT 2010
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: kremenek at apple.com
ReportedBy: alex at kempgen.de
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list