Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

checking format strings for the Python/C API #16797

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR16798
Status NEW
Importance P enhancement
Reported by Todd Nowacki (nowacki724@gmail.com)
Reported on 2013-08-05 15:59:52 -0700
Last modified on 2015-02-09 11:54:05 -0800
Version unspecified
Hardware PC All
CC llvm-bugs@lists.llvm.org, llvm@insonuit.org, nowacki724@gmail.com
Fixed by commit(s)
Attachments format_checker.patch (43378 bytes, application/octet-stream)
Blocks
Blocked by
See also
Created attachment 10987
Proposed implementation

Progress patch for checker

The checker should be able to check that the format string is well formed
(matching parens, no unexpected characters, etc.), and should check that the
arguments given fit the type specified in the format string.

At this time, there is no way to check the types for a variable argument list.
Quuxplusone commented 11 years ago

Attached format_checker.patch (43378 bytes, application/octet-stream): Proposed implementation

Quuxplusone commented 11 years ago

See http://docs.python.org/3.1/c-api/arg.html for details on the format strings.