$ the-wire · showcase
Flutter hardens image sniffing, Swift fixes a codegen crash
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
Two crash-class bugs in Flutter and a silent miscompile in Swift's Optimizer lead a day otherwise made of API plumbing and dependency cleanup.
PartialApplyCombiner: Transfer a noncopyable capture to every combined apply. apple/swift
Combining the applies of a noncopyable on-stack closure dropped a consumed capture as soon as the first apply was combined, so closures reached on more than one path had later applies combined against an undefined capture. The combiner now transfers the capture to every combined apply. This is an optimizer correctness fix, so code relying on noncopyable closure captures can miscompile on the af...
[web] Harden WebP and GIF header readers against truncated and malformed buffers (#196075) flutter/flutter
detectImageType runs synchronously on every encoded image before decoding, and the WebP (RIFF....WEBP) and GIF (GIF87a/GIF89a) header readers could crash on a buffer that matched the signature but was truncated or corrupt, such as from a partial network download. Those readers now bail out cleanly instead of throwing.
Fix RelativeRect.lerp crash when b is null (#196655) flutter/flutter
RelativeRect.lerp(a, null, t) read b where it should have read a, so any call passing a null rect always threw a null check error. It now lerps between a and the identity rect as intended.
[IRGen] Run ObjCARCContract at -Onone when Clang ARC markers are present (#94173) apple/swift
Clang codegen at -O1 and above emits llvm.objc.clang.arc.use and llvm.objc.clang.arc.noop.use, which only ObjCARCContract removes; Swift ran that pass only when optimizing. Since ClangImporter stopped lowering the Clang optimization level at -Onone, imported inline functions built with -Xcc -O2 carried those markers into an -Onone pipeline, so IRGen now runs ObjCARCContract at -Onone when they ...
[flutter_tools] Remove ambient Doctor, FeatureFlags, and device getters (#196572) flutter/flutter
Ambient context.get<T>() lookups come out of the doctor workflows and validators, featureFlags, the Cache local-engine checks, deviceManager, emulatorManager and PersistentToolState.instance, with dependencies threaded explicitly through ToolDependencies. This is internal to flutter_tools, but downstream code that reached for those ambient getters will need the explicit dependency.
[IR] Route static field reads outside the container through accessors JetBrains/kotlin
Lowered ::prop.isInitialized read the backing field directly, so a static field read from outside its container, e.g. from a nested class, never triggered the container's initialization: the lazy initializers on Native, static_init on JS and Wasm. SyntheticAccessorLowering now routes those reads through a static synthetic getter in the field's container. Also landing quietly: Kotlin dropped Gra...