Skip to content

[SR-2587] Optimisation for zero length String fails on Android build of Foundation #3939

Closed
@johnno1962

Description

@johnno1962
Previous ID SR-2587
Radar None
Original Reporter @johnno1962
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @johnno1962
Priority Medium

md5: 647012f97ad3fe4b3b854ad423c13a8a

Issue Description:

During the port of Foundation to Android it was found that an optimisation for creating zero length Strings from Data objects was causing a SEGFAULT.

#622

The change made to remove this optimisation is here:

https://github.com/SwiftJava/swift-corelibs-foundation/blob/master/CoreFoundation/String.subproj/CFString.c#L1267

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions