add size check for from_raw_parts (#23781)

This commit is contained in:
Jack May
2022-03-22 15:20:39 -07:00
committed by GitHub
parent 7af48465fa
commit 3d7c8442c7
2 changed files with 490 additions and 246 deletions

View File

@ -331,6 +331,10 @@ pub mod disable_deprecated_loader {
solana_sdk::declare_id!("GTUMCZ8LTNxVfxdrw7ZsDFTxXb7TutYkzJnFwinpE6dg");
}
pub mod check_slice_translation_size {
solana_sdk::declare_id!("GmC19j9qLn2RFk5NduX6QXaDhVpGncVVBzyM8e9WMz2F");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@ -408,6 +412,7 @@ lazy_static! {
(check_physical_overlapping::id(), "check physical overlapping regions"),
(limit_secp256k1_recovery_id::id(), "limit secp256k1 recovery id"),
(disable_deprecated_loader::id(), "disable the deprecated BPF loader"),
(check_slice_translation_size::id(), "check size when translating slices",)
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()