From e62c337f44c1236e97c470c059fe3bc3c942c1fa Mon Sep 17 00:00:00 2001 From: VariantConst <50503766+VariantConst@users.noreply.github.com> Date: Wed, 19 Nov 2025 11:07:53 +0800 Subject: [PATCH] Increase minimum accounts check from 11 to 13 Fixed out-of-bounds array access in PumpSwap buy/sell parser. --- src/streaming/event_parser/protocols/pumpswap/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/streaming/event_parser/protocols/pumpswap/parser.rs b/src/streaming/event_parser/protocols/pumpswap/parser.rs index 215b929..5bc5dd9 100755 --- a/src/streaming/event_parser/protocols/pumpswap/parser.rs +++ b/src/streaming/event_parser/protocols/pumpswap/parser.rs @@ -136,7 +136,7 @@ fn parse_buy_instruction( ) -> Option { metadata.event_type = EventType::PumpSwapBuy; - if data.len() < 16 || accounts.len() < 11 { + if data.len() < 16 || accounts.len() < 13 { return None; } @@ -173,7 +173,7 @@ fn parse_sell_instruction( ) -> Option { metadata.event_type = EventType::PumpSwapSell; - if data.len() < 16 || accounts.len() < 11 { + if data.len() < 16 || accounts.len() < 13 { return None; }