{"record":{"id":"255a938e10ffa351","repo":"junegunn/fzf","slug":"input-buffer-overflow-d-v","errorCode":null,"errorMessage":"input buffer overflow (%d): %v","messagePattern":"input buffer overflow \\((.+?)\\): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/tui/light.go","lineNumber":387,"sourceCode":"\t\t\tif retries > 0 {\n\t\t\t\tretries--\n\t\t\t\ttime.Sleep(escPollInterval * time.Millisecond)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tbreak\n\t\t} else if c == Esc.Int() && pc != c {\n\t\t\tretries = r.escDelay / escPollInterval\n\t\t} else {\n\t\t\tretries = 0\n\t\t}\n\t\tbuffer = append(buffer, byte(c))\n\t\tpc = c\n\n\t\t// This should never happen under normal conditions,\n\t\t// so terminate fzf immediately.\n\t\tif len(buffer) > maxInputBuffer {\n\t\t\tr.Close()\n\t\t\treturn nil, getCharError, fmt.Errorf(\"input buffer overflow (%d): %v\", len(buffer), buffer)\n\t\t}\n\t}\n\n\treturn buffer, getCharSuccess, nil\n}\n\nfunc (r *LightRenderer) GetChar(cancellable bool) Event {\n\tvar err error\n\tvar result getCharResult\n\tif len(r.buffer) == 0 {\n\t\tr.buffer, result, err = r.getBytes(cancellable)\n\t\tif err != nil {\n\t\t\treturn Event{Fatal, 0, nil}\n\t\t}\n\t\tif result == getCharCancelled {\n\t\t\treturn Event{Invalid, 0, nil}\n\t\t}\n\t}","sourceCodeStart":369,"sourceCodeEnd":405,"githubUrl":"https://github.com/junegunn/fzf/blob/bd4efa277b49ef34ca4025bff9b1a288e1980eff/src/tui/light.go#L369-L405","documentation":"Error \"input buffer overflow (%d): %v\" thrown in junegunn/fzf.","triggerScenarios":"Thrown at src/tui/light.go:387 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade fzf: this overflow indicates a terminal escape sequence longer than the internal input buffer, which should not happen in normal use","Check the terminal emulator for a malfunction producing runaway escape sequences; try a different TERM value or terminal","Report the issue with the overflowing input bytes shown in the message"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bd4efa277b49ef34ca4025bff9b1a288e1980eff","analyzedAt":"2026-08-15T06:11:46.983Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}