32 bit String Format Specifiers should trigger warnings for 64 bit values
Originator: | an00na | ||
Number: | rdar://40005728 | Date Originated: | May 5 2018, 9:49 PM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | 9.3 |
Classification: | Other Bug | Reproducible: | Always |
Summary: When 32 bit String Format Specifiers are used for 64 bit values, Xcode should report warnings but doesn't, for example: [NSString stringWithFormat@"%tu", unsigned_64_bit_int_value] Steps to Reproduce: 1. Compile sample project for 32 bit devices to see no warnings for the incorrect NSLog code. 2. Run the sample project on 32 bit devices to see the incorrect results in console logs. Code: https://mega.nz/#!dCRzXaCR!O04j6eSuOpj6ZZ3eI3LboPTvwndjjuF4XlMLcJKoDmg
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!