Skip to content

A stack overflow occurs on certain input data. #19

@pirST

Description

@pirST

Describe the bug

I don't know if it is possible to use it like that, but...

Steps to reproduce

jsonrepair.RepairJSON(`
{
  "Be": "",
  "gone": "" 
}
",п"г`)

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc0201e0358 stack=[0xc0201e0000, 0xc0401e0000]
fatal error: stack overflow

Expected behavior

Return a string

{
  "Be": "",
  "gone": "" 
}

Environment

  • OS: OS: Ubuntu 24.04 LTS
  • go version go1.23.2 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions