mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-24 22:38:08 +00:00
Increase minimum accounts check from 11 to 13
Fixed out-of-bounds array access in PumpSwap buy/sell parser.
This commit is contained in:
@@ -136,7 +136,7 @@ fn parse_buy_instruction(
|
|||||||
) -> Option<DexEvent> {
|
) -> Option<DexEvent> {
|
||||||
metadata.event_type = EventType::PumpSwapBuy;
|
metadata.event_type = EventType::PumpSwapBuy;
|
||||||
|
|
||||||
if data.len() < 16 || accounts.len() < 11 {
|
if data.len() < 16 || accounts.len() < 13 {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ fn parse_sell_instruction(
|
|||||||
) -> Option<DexEvent> {
|
) -> Option<DexEvent> {
|
||||||
metadata.event_type = EventType::PumpSwapSell;
|
metadata.event_type = EventType::PumpSwapSell;
|
||||||
|
|
||||||
if data.len() < 16 || accounts.len() < 11 {
|
if data.len() < 16 || accounts.len() < 13 {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user