After updating the Mastodon iOS app to build with XCode 16, we are noticing some very weird data corruption, but only in Release configuration. We suspect this is some data corruption in one of our dependencies caused by some compiler optimisation, but so far we have not really found out the cause.
iOS dev friends, does this ring a bell?
All the details are here: https://github.com/mastodon/mastodon-ios/issues/1348
[#]ios #iosdev
=> More informations about this toot | More toots from renchap@oisaur.com
@renchap @eliperkins noticed something similar with the GitHub app, it was the Fuzi dependency I think? I will let Eli chime in :-D.
=> More informations about this toot | More toots from vcsjones@infosec.exchange
@vcsjones @renchap oooh interesting. Seems very similar to the bug we experienced when upgrading to Xcode 16, where it only appeared in Release builds!
The bug we had in the GitHub app was related to Fuzi using UnsafeBufferPointer(rebasing:)
rather than passing the C string buffer directly to libxml2.
https://github.com/cezheng/Fuzi/blob/e853de3bdeb6fd458bcab6daa4d56e68ff80c531/Sources/Document.swift#L98-L112
We worked around this by calling the initializer that passes the C string buffer to libxml2 directly.
=> More informations about this toot | More toots from eliperkins@mastodon.online
@eliperkins @vcsjones Thanks thats very helpful, our developer will have a closer look at this tomorrow
=> More informations about this toot | More toots from renchap@oisaur.com
@renchap @eliperkins @vcsjones Thank you all so much, I have just forked MetaTextKit and applied your suggestions and it indeed fixed the issue 🙌 https://github.com/Bearologics/MetaTextKit/commit/f714e2a95fe99d37060889c24649ea61d26a23f8#diff-359e01245c0bfea5428a3f0645bbb38034d11125d3de38782cf72e986ac369cdR80
=> More informations about this toot | More toots from marcus@bearologics.social
@marcus @renchap @eliperkins Hooray!
=> More informations about this toot | More toots from vcsjones@infosec.exchange
@vcsjones @renchap @eliperkins I definitely owe you a Beer (or two) or another beverage of your choice, in case we ever meet IRL. HMU if you ever plan to visit Berlin.
=> More informations about this toot | More toots from marcus@bearologics.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini