MCPcopy Create free account
hub / github.com/erans/pgsqlite / parse_auth_message_safely

Function parse_auth_message_safely

tests/protocol_fuzzing_test.rs:178–186  ·  view source on GitHub ↗
(input: &[u8])

Source from the content-addressed store, hash-verified

176}
177
178async fn parse_auth_message_safely(input: &[u8]) -> Result<AuthenticationRequest, Box<dyn std::error::Error>> {
179 let mut cursor = Cursor::new(input);
180 let parser = MessageParser::new();
181
182 match parser.parse_auth_request(&mut cursor).await {
183 Ok(msg) => Ok(msg),
184 Err(e) => Err(Box::new(e))
185 }
186}
187
188async fn parse_query_message_safely(input: &[u8]) -> Result<FrontendMessage, Box<dyn std::error::Error>> {
189 let mut cursor = Cursor::new(input);

Callers 1

Calls 1

parse_auth_requestMethod · 0.80

Tested by

no test coverage detected