Nicolas Seriot: // "<a>" in UTF-16 LE + a single dangling byte const UInt8 bytes[] = {'<', 0, 'a', 0, '>', 0, 'X'}; […] The whole bug is a confusion between bytes left versus UTF-16 characters left. The result is repeated buffer doubling until allocation fails, and a local process crash if the exception is […]
// "<a>" in UTF-16 LE + a single dangling byte const UInt8 bytes[] = {'<', 0, 'a', 0, '>', 0, 'X'};[…]
The whole bug is a confusion between bytes left versus UTF-16 characters left. The result is repeated buffer doubling until allocation fails, and a local process crash if the exception is uncaught.
Bug Core Foundation Mac macOS 27 Golden Gate Programming Unicode XML
3 Comments RSS · Twitter · MastodonAnonymous
This post is cool but CFXMLParser has been deprecated since 10.8. Can we get some posts about new bugs in frameworks like Foundation.
someone
> This post is cool but CFXMLParser has been deprecated since 10.8.
There are plenty of software that use deprecated APIs and run on the latest OS versions. In the case of Apple platforms, it's either to maintain backward compatibility or because the "geniuses" at Cupertino deprecate/obsolete APIs/frameworks before (ever)? providing a replacement (I'm not event talking about a reliable one).
Dave
> "...Cupertino deprecate/obsolete APIs/frameworks before (ever)? providing a replacement ..."
Good point, but let me give you another reason... GLKit, as in OpenGL. It's been deprecated since iOS 12 and macOS 10.14, replaced with Metal. Yet here we are, 8 years later. Is Metal *better* or *more modern* than OpenGL? Debatable. But realistically, in technical terms please, how can Apple break something that would immediately obsolete a decent percentage of apps out there?
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Mac Installer Plug-Ins Bug | 0 | 14.73 | 02-10-2026 |
| 2 | Illegal HTML from Autolinks in Link Text | 0 | 7.66 | 28-07-2026 |
| 3 | Using link reference definitions as invisible structural markers — sound, or a bad idea? | 0 | 10 | 27-09-2026 |
| 4 | A list of common mistakes that people make while writing Markdown | 0 | 10.4 | 20-08-2026 |
| 5 | Число пострадавших в ДТП с автобусом в Забайкалье выросло | 0 | 6.31 | 30-09-2026 |
| 6 | Patches Updated To Begin Removing The Linux x32 ABI | 0 | 5.29 | 08-10-2026 |
| 7 | Boeing identifies 737 MAX software glitch | 0 | 14.05 | 27-09-2026 |
| 8 | В Забайкалье выросло число пострадавших в ДТП с автобусом и большегрузом | 0 | 4.62 | 30-09-2026 |
| 9 | Plane crash in Buffalo, Minnesota? Reports of small aircraft incident near airport, what we know | 0 | 5.29 | 27-09-2026 |