alibaba / alibaba/HandyJSON

JSONDeserializer.update 13.4上崩溃 、13.3上正常

Open
#378 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

崩溃位置为
public static func write(_ value: Any, to storage: UnsafeMutableRawPointer) {
guard let this = value as? Self else {
return
}
storage.assumingMemoryBound(to: self).pointee = this
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at JSONDeserializer.update and the JSONDeserializer.write implementation shown in the issue, then reproduce the crash on Swift 13.4 while comparing behavior with 13.3. Trace the value cast and memory write to identify the regression; done means the update no longer crashes on 13.4 and existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.