Ancestors

Toot

Written by Renaud Chaput on 2024-10-09 at 14:08

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

Descendants

Written by Kevin Jones on 2024-10-09 at 14:16

@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

Written by Eli Perkins on 2024-10-09 at 14:48

@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.

=> View attached media

=> More informations about this toot | More toots from eliperkins@mastodon.online

Written by Renaud Chaput on 2024-10-09 at 16:48

@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

Written by Marcus Kida on 2024-10-09 at 17:00

@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

Written by Kevin Jones on 2024-10-09 at 17:11

@marcus @renchap @eliperkins Hooray!

=> More informations about this toot | More toots from vcsjones@infosec.exchange

Written by Marcus Kida on 2024-10-09 at 17:38

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113277857068509092
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
319.877641 milliseconds
Gemini-to-HTML Time
1.999393 milliseconds

This content has been proxied by September (ba2dc).