Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-3566] Data incorrectly truncates when appending contents of abstract sequences #3900

Open
phausler opened this issue Jan 6, 2017 · 1 comment

Comments

@phausler
Copy link
Member

phausler commented Jan 6, 2017

Previous ID SR-3566
Radar rdar://problem/29903374
Original Reporter @phausler
Type Bug
Additional Detail from JIRA
Votes 2
Component/s Foundation
Labels Bug, Linux, SDKOverlay
Assignee None
Priority Medium

md5: 9a2094dad4aa3a32381cf3350604558d

Issue Description:

var d = Data()
d.append(contentsOf: elements)

assert(d[0] == 0x01)
assert(d[1] == 0x01) // fails here because the internal append method incorrectly truncates
assert(d[2] == 0x01)
@Dante-Broggi
Copy link

I think this has been fixed. If so, it should be closed.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants