[cfe-users] Possible codegen/link problems

2017-10-12 Thread Rick Mann via cfe-users
We have a complex Objective C++/C++ project that uses, among other things OpenCV's cvflann kdtree implementation. I'm not sure if this is the right list to inquire on. But we're having a really hard time figuring this out. Xcode 9's debugging is leaving a lot to be desired (can't single-step a

[cfe-users] App security and the __FILE__ macro

2018-04-12 Thread Rick Mann via cfe-users
The higher-ups decided we needed penetration testing of our app. One of their concerns was that if you run the macOS strings tool on our binary and grep for /Users, you get a ton of absolute paths for source files in the project. This is because (I think) we use the __FILE__ macro as part of our

Re: [cfe-users] App security and the __FILE__ macro

2018-04-13 Thread Rick Mann via cfe-users
chr(__FILE__, '/')+1` should get resolved at compile-time whenever you > have optimizations on. > >> On Apr 12, 2018, at 15:38, Rick Mann via cfe-users >> wrote: >> >> The higher-ups decided we needed penetration testing of our app. One of >> their

Re: [cfe-users] App security and the __FILE__ macro

2018-04-13 Thread Rick Mann via cfe-users
ck Mann >> rm...@latencyzero.com >> >>> On Apr 12, 2018, at 23:36, Duncan P. N. Exon Smith >>> wrote: >>> >>> `strrchr(__FILE__, '/')+1` should get resolved at compile-time whenever you >>> have optimizations on. >&

Re: [cfe-users] App security and the __FILE__ macro

2018-04-13 Thread Rick Mann via cfe-users
gt; On Apr 12, 2018, at 23:36 , Duncan P. N. Exon Smith > wrote: > > `strrchr(__FILE__, '/')+1` should get resolved at compile-time whenever you > have optimizations on. > >> On Apr 12, 2018, at 15:38, Rick Mann via cfe-users >> wrote: >> >> Th

Re: [cfe-users] App security and the __FILE__ macro

2018-04-13 Thread Rick Mann via cfe-users
> On Apr 13, 2018, at 23:52 , Steffen Hirschmann > wrote: > > On 13:22 Fri 13 Apr , Rick Mann via cfe-users wrote: >> I'm using `strrchr("/" __FILE__, '/') + 1`. Should that also get resolved? > Just have a look at a minimal example on godbo