Increase minimum accounts check from 11 to 13

Fixed out-of-bounds array access in PumpSwap buy/sell parser.
This commit is contained in:
VariantConst
2025-11-19 11:07:53 +08:00
committed by GitHub
parent 329405e23f
commit e62c337f44
@@ -136,7 +136,7 @@ fn parse_buy_instruction(
) -> Option<DexEvent> {
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<DexEvent> {
metadata.event_type = EventType::PumpSwapSell;
if data.len() < 16 || accounts.len() < 11 {
if data.len() < 16 || accounts.len() < 13 {
return None;
}