scinfu/SwiftSoup

Heap Corruption

edutim opened this issue · 1 comments

This issue comes up at random times.

Getting signal SIGABRT in the CharacterReader class.

public func consumeToAny(_ chars: [UnicodeScalar]) -> String { let start = pos while pos < input.endIndex { if chars.contains(input[pos]) { // signal pops up here. break } pos = input.index(after: pos) } return cacheString(start, pos) }

APP NAME(11718,0x70000133e000) malloc: Heap corruption detected, free list is damaged at 0x6000009b8570
*** Incorrect guard value: 140528044080704
APP NAME(11718,0x700001132000) malloc: *** error for object 0x6000009b8870: pointer being freed was not allocated
APP NAME(11718,0x700001132000) malloc: *** set a breakpoint in malloc_error_break to debug
APP NAME(11718,0x700001132000) malloc: *** error for object 0x6000009b8870: pointer being freed was not allocated