Bug 205968 - Create post-build script which warns when Objective-C __objc_methtype's type is longer than usual case
Summary: Create post-build script which warns when Objective-C __objc_methtype's type ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-08 16:03 PST by Yusuke Suzuki
Modified: 2020-01-14 10:32 PST (History)
2 users (show)

See Also:


Attachments
Script like this (1.76 KB, text/x-python-script)
2020-01-08 16:21 PST, Yusuke Suzuki
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2020-01-08 16:03:42 PST
We should start with something apparently wrong, like, 1KB.
Comment 1 Yusuke Suzuki 2020-01-08 16:21:33 PST
Created attachment 387157 [details]
Script like this

Super ad-hoc script.
Comment 2 Joseph Pecoraro 2020-01-14 10:32:47 PST
Seems there is a tuple in the binary (name, type, imp). So if a long type encoding string is found you could print the next line (of otool -oV) and get the full name of the ObjC method that it is associated with.