Comments (4)
Never tried Swift 4, I don't even have a working Swift compiler anywhere currently… Do you have any idea what might be happening here?
I found this: https://bugs.swift.org/browse/SR-5119 — could that be the issue?
from swiftcbor.
I think it's because the istream gets modified while we parse through the CBOR. I think if it was immutable and just iterated over there wouldn't be a problem. Not sure if there's an easy way todo this.
from swiftcbor.
I have a fix for this. You can have a look here:
I had to make the stream immutable and pass it along in the recursion. I'm not sure it would make a good pull request since I think the memory performance might not be good enough for general use. It will probably be good enough in our application since we have an upper limit on the size of the CBOR.
In any case I need to tidy up a little.
Have a look!
from swiftcbor.
I just made a pull request for the same issue, you can fix the issue by moving the two popByte calls to separate lines in the code (see #9).
from swiftcbor.
Related Issues (20)
- Parsing error with 0.4.2 HOT 3
- CBOR decode as dictionary HOT 3
- Decoding an array using CodableCBORDecoder() HOT 6
- Unable to launch the app in Device HOT 1
- Error on encoding empty Array inside a Map HOT 4
- incorrect work with Codable
- Extracting/accessing tags from a cbor, HOT 1
- fatalError terminates application
- New release 0.4.4 HOT 2
- UnkeyedDecodingContainer - corrupted data causes crash HOT 1
- Orderd Dictionary/Map HOT 7
- CodableCBORDecoder crashes when trying to decode HOT 2
- Breaking Changes in 0.4.5 HOT 2
- `Codable` support should be updated to support `CodingKeyRepresentable`
- Clarify Carthage Support
- Semantic versioning not followed HOT 1
- iOS 16.1 UnsafeRawPointer is depreciated and decodeItem returns nil value HOT 3
- Crash when decoding optional UnkeyContainer
- Please follow Semantic Versioning HOT 2
- CBOR decode crashes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftcbor.