{
  "id": "go/io-reader-too-large",
  "signature": "io: read limit exceeded",
  "signature_zh": "io: 读取限制超出",
  "regex": "io:\\ read\\ limit\\ exceeded",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "Using io.LimitReader with a limit smaller than the actual data size, causing Read to return an error when the limit is reached.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 io.LimitReader 时限制小于实际数据大小，导致达到限制时 Read 返回错误。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "May cause memory exhaustion if data is maliciously large.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Leads to incomplete data processing and potential corruption.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "r := io.LimitReader(file, maxSize); data, err := io.ReadAll(r); if err != nil { ... }; if len(data) == maxSize { /* handle overflow */ }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}