Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • encoding
  • json
  • decode.go
Find file BlameHistoryPermalink
  • Lucas Bremgartner's avatar
    encoding/json: validate strings when decoding into Number · c1000c50
    Lucas Bremgartner authored Sep 16, 2019
    Unmarshaling a string into a json.Number should first check that the string is a valid Number.
    If not, we should fail without decoding it.
    
    Fixes #14702
    
    Change-Id: I286178e93df74ad63c0a852c3f3489577072cf47
    GitHub-Last-Rev: fe69bb68eed06d056639f440d2daf4bb7c99013b
    GitHub-Pull-Request: golang/go#34272
    Reviewed-on: https://go-review.googlesource.com/c/go/+/195045
    
    
    Reviewed-by: default avatarDaniel Martí <mvdan@mvdan.cc>
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    c1000c50
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7