Skip to content

Hard crash while parsing Wikipedia SVG #72

Closed
@vsameer

Description

@vsameer

Im building an Wikipedia client, have had good success with SwiftDraw, until when one of the link in article for "The Russian Empire" crashing the app consistent. The error is "Thread 10: EXC_BAD_ACCESS (code=2, address=0x16bf6bf70)" and it's thrown in following code in XMLParser/

mutating func scanString(upTo token: String) throws -> String {
            scanner.currentIndex = currentIndex
            guard let match = scanner.scanUpToString(token) else {
                throw Error.invalid
            }

            currentIndex = scanner.currentIndex
            return match
        }

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions