{"record":{"id":"f1839450938d20a3","repo":"biomejs/biome","slug":"input-to-be-smaller-than-4-gb","errorCode":null,"errorMessage":"Input to be smaller than 4 GB","messagePattern":"Input to be smaller than 4 GB","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/biome_markdown_parser/src/lexer/mod.rs","lineNumber":653,"sourceCode":"                return None;\n            }\n\n            if is_valid(byte, count) {\n                count += 1;\n                if count > max_len {\n                    return None;\n                }\n                i += 1;\n            } else {\n                return None;\n            }\n        }\n\n        None\n    }\n\n    fn text_position(&self) -> TextSize {\n        TextSize::try_from(self.position).expect(\"Input to be smaller than 4 GB\")\n    }\n\n    /// Returns true if the current token text is only spaces or tabs.\n    fn current_text_is_whitespace(&self) -> bool {\n        let start = u32::from(self.current_start) as usize;\n        let end = self.position;\n        if start >= end || end > self.source.len() {\n            return false;\n        }\n        self.source.as_bytes()[start..end]\n            .iter()\n            .all(|b| *b == b' ' || *b == b'\\t')\n    }\n\n    /// Returns the byte at position `self.position + offset` or `None` if it is out of bounds.\n    #[inline]\n    fn byte_at(&self, offset: usize) -> Option<u8> {\n        let position = self.position.checked_add(offset)?;","sourceCodeStart":635,"sourceCodeEnd":671,"githubUrl":"https://github.com/biomejs/biome/blob/45a19bbf1747401274f1be1f9f89d6af91367190/crates/biome_markdown_parser/src/lexer/mod.rs#L635-L671","documentation":"Error \"Input to be smaller than 4 GB\" thrown in biomejs/biome.","triggerScenarios":"Thrown at crates/biome_markdown_parser/src/lexer/mod.rs:615 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Split inputs larger than 4 GB into smaller documents before parsing.","Stream or chunk large Markdown sources instead of loading them whole."],"exampleFix":"assert!(input.len() < u32::MAX as usize); // enforce before lexing","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"45a19bbf1747401274f1be1f9f89d6af91367190","analyzedAt":"2026-08-20T00:25:09.682Z","contentChangedAt":"2026-08-20T00:25:09.682Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}