spl-token-2022 0.9.0
Using sanitizier `address`.                                                                                                                                                                                                                                     
Preparing a careful sysroot (target: x86_64-unknown-linux-gnu, sanitizer: address)... done                                                                                                                                                                      
warning: private item shadows public glob re-export                                                                                                                                                                                                             
  --> src/extension/confidential_transfer/instruction.rs:13:16                                                                                                                                                                                                  
   |                                                                                                                                                                                                                                                            
13 |     bytemuck::{Pod, Zeroable},                                                                                                                                                                                                                             
   |                ^^^                                                                                                                                                                                                                                         
   |                                                                                                                                                                                                                                                            
note: the name `Pod` in the type namespace is supposed to be publicly re-exported here                                                                                                                                                                          
  --> src/extension/confidential_transfer/instruction.rs:4:5                                                                                                                                                                                                    
   |                                                                                                                                                                                                                                                            
4  |     zk_token_proof_instruction::*, zk_token_proof_state::ProofContextState,                                                                                                                                                                                
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                          
note: but the private item here shadows it                                                                                                                                                                                                                      
  --> src/extension/confidential_transfer/instruction.rs:13:16                                                                                                                                                                                                  
   |                                                                                                                                                                                                                                                            
13 |     bytemuck::{Pod, Zeroable},                                                                                                                                                                                                                             
   |                ^^^                                                                                                                                                                                                                                         
   = note: `#[warn(hidden_glob_reexports)]` on by default                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:132:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
132 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
    |                                                                                                                                                                                                                                                           
    = note: `#[warn(unused_mut)]` on by default                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:153:13                                                                                                                                                                                                  
    |                                                                                                                                                                                                                                                           
153 |         let mut confidential_transfer_fee_amount =                                                                                                                                                                                                        
    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                          
    |             |                                                                                                                                                                                                                                             
    |             help: remove this `mut`                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:182:13                                                                                                                                                                                                  
    |                                                                                                                                                                                                                                                           
182 |         let mut confidential_transfer_state =                                                                                                                                                                                                             
    |             ----^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                               
    |             |                                                                                                                                                                                                                                             
    |             help: remove this `mut`                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:218:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
218 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:295:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
295 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:387:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
387 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:641:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
641 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:701:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
701 |     let mut destination_confidential_transfer_account =                                                                                                                                                                                                   
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                     
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:767:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
767 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:830:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
830 |     let mut destination_confidential_transfer_account =                                                                                                                                                                                                   
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                     
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:887:17                                                                                                                                                                                                  
    |                                                                                                                                                                                                                                                           
887 |             let mut destination_confidential_transfer_fee_amount =                                                                                                                                                                                        
    |                 ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                          
    |                 |                                                                                                                                                                                                                                         
    |                 help: remove this `mut`                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:930:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
930 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer/processor.rs:976:9                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                           
976 |     let mut confidential_transfer_account =                                                                                                                                                                                                               
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
    --> src/extension/confidential_transfer/processor.rs:1006:9                                                                                                                                                                                                 
     |                                                                                                                                                                                                                                                          
1006 |     let mut confidential_transfer_account =                                                                                                                                                                                                              
     |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                
     |         |                                                                                                                                                                                                                                                
     |         help: remove this `mut`                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer_fee/processor.rs:128:9                                                                                                                                                                                               
    |                                                                                                                                                                                                                                                           
128 |     let mut destination_confidential_transfer_account =                                                                                                                                                                                                   
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                     
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
   --> src/extension/confidential_transfer_fee/processor.rs:289:9                                                                                                                                                                                               
    |                                                                                                                                                                                                                                                           
289 |     let mut destination_confidential_transfer_account =                                                                                                                                                                                                   
    |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                     
    |         |                                                                                                                                                                                                                                                 
    |         help: remove this `mut`                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
warning: `spl-token-2022` (lib) generated 17 warnings (run `cargo fix --lib -p spl-token-2022` to apply 16 suggestions)                                                                                                                                         
warning: variable does not need to be mutable                                                                                                                                                                                                                   
    --> src/extension/mod.rs:1524:13                                                                                                                                                                                                                            
     |                                                                                                                                                                                                                                                          
1524 |         let mut unpacked_extension = state.get_extension_mut::<MintCloseAuthority>().unwrap();                                                                                                                                                           
     |             ----^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                       
     |             |                                                                                                                                                                                                                                            
     |             help: remove this `mut`                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                
warning: variable does not need to be mutable                                                                                                                                                                                                                   
    --> src/extension/mod.rs:1793:13                                                                                                                                                                                                                            
     |                                                                                                                                                                                                                                                          
1793 |         let mut unpacked_extension = state.get_extension_mut::<TransferFeeAmount>().unwrap();                                                                                                                                                            
     |             ----^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                       
     |             |                                                                                                                                                                                                                                            
     |             help: remove this `mut`                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                
warning: `spl-token-2022` (lib test) generated 19 warnings (17 duplicates) (run `cargo fix --lib -p spl-token-2022 --tests` to apply 2 suggestions)                                                                                                             
    Finished test [unoptimized + debuginfo] target(s) in 0.38s                                                                                                                                                                                                  
     Running unittests src/lib.rs (target/x86_64-unknown-linux-gnu/debug/deps/spl_token_2022-c5204a427e1bc4fa)                                                                                                                                                  
                                                                                                                                                                                                                                                                
running 84 tests                                                                                                                                                                                                                                                
test extension::interest_bearing_mint::tests::amount_to_ui_amount ... ok                                                                                                                                                                                        
test extension::interest_bearing_mint::tests::seconds_per_year ... ok                                                                                                                                                                                           
test extension::interest_bearing_mint::tests::specific_amount_to_ui_amount ... ok                                                                                                                                                                               
test extension::interest_bearing_mint::tests::specific_amount_to_ui_amount_no_interest ... ok                                                                                                                                                                   
test extension::interest_bearing_mint::tests::specific_ui_amount_to_amount ... ok                                                                                                                                                                               
test extension::interest_bearing_mint::tests::specific_ui_amount_to_amount_no_interest ... ok                                                                                                                                                                   
test extension::interest_bearing_mint::tests::time_weighted_average_calc ... ok                                                                                                                                                                                 
test extension::test::account_len ... ok                                                                                                                                                                                                                        
test extension::test::account_with_extension_pack_unpack ... ok                                                                                                                                                                                                 
test extension::test::account_with_multisig_len ... ok                                                                                                                                                                                                          
test extension::test::alloc ... ok                                                                                                                                                                                                                              
test extension::test::alloc_new_tlv_in_account_info_from_base_size ... =================================================================                                                                                                                        
==6889==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7f257baf75fc at pc 0x5615657f46aa bp 0x7f25bbff3ab0 sp 0x7f25bbff3aa8                                                                                                                       
READ of size 4 at 0x7f257baf75fc thread T12                                                                                                                                                                                                                     
    #0 0x5615657f46a9 in solana_program::account_info::AccountInfo::original_data_len::h355a2e1e97f46993 /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-program-1.17.4/src/account_info.rs:87:9                                              
    #1 0x5615657f589e in solana_program::account_info::AccountInfo::realloc::h3ce8ed604cc223a6 /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-program-1.17.4/src/account_info.rs:159:42                                                      
    #2 0x561564b5b82f in spl_token_2022::extension::alloc_and_serialize::hfb38d1f53a80fac0 /build/src/extension/mod.rs:1201:9                                                                                                                                   
    #3 0x561564deebd2 in spl_token_2022::extension::test::alloc_new_tlv_in_account_info_from_base_size::h8d53f90649175a3e /build/src/extension/mod.rs:2377:9                                                                                                    
    #4 0x561564dee012 in spl_token_2022::extension::test::alloc_new_tlv_in_account_info_from_base_size::_$u7b$$u7b$closure$u7d$$u7d$::h7f2ab35b53504917 /build/src/extension/mod.rs:2364:54                                                                     
    #5 0x561564d95f6b in core::ops::function::FnOnce::call_once::hc015fb43e9f660d3 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5                                                        
    #6 0x561564f8d44d in core::ops::function::FnOnce::call_once::haf6beac6411ace21 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5                                                        
    #7 0x561564f5410d in test::__rust_begin_short_backtrace::h924b783ba1a9c9ca /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:628:18                                                                    
    #8 0x561564fdbfcf in test::types::RunnableTest::run::h1f4c0b82effe83d9 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/types.rs:146:40                                                                      
    #9 0x561564f55d32 in test::run_test_in_process::_$u7b$$u7b$closure$u7d$$u7d$::he7eee1e610f977c6 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:651:60                                               
    #10 0x561564ed4af2 in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hbb27af2069b6a496 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:271:9
    #11 0x561565048874 in std::panicking::try::do_call::h415efd5b21164ad7 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:504:40                                                                    
    #12 0x561565069fca in __rust_try test.177ba5ca09dc10c0-cgu.03                                                                                                                                                                                               
    #13 0x561565047d86 in std::panicking::try::hb78273e71244213a /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:468:19                                                                             
    #14 0x56156502d3cd in std::panic::catch_unwind::hcb587d79fc9c3341 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:142:14                                                                            
    #15 0x561564f54cf2 in test::run_test_in_process::h0c7533ff403d605c /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:651:27                                                                            
    #16 0x561564f533d0 in test::run_test::_$u7b$$u7b$closure$u7d$$u7d$::hdc51cc8409c32c6d /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:574:43                                                         
    #17 0x561564f53d1b in test::run_test::_$u7b$$u7b$closure$u7d$$u7d$::hfd8cd6997a8a7b66 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:602:41                                                         
    #18 0x56156506a6d0 in std::sys_common::backtrace::__rust_begin_short_backtrace::h9f31c74d0604e988 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:154:18                             
    #19 0x561564f3a056 in std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hb34183890a114e8c /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:529:17
    #20 0x561564ed49f6 in _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h89643161a29a1650 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:271:9
    #21 0x561565048418 in std::panicking::try::do_call::h2a2c6cd4e34416c0 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:504:40                                                                    
    #22 0x561565069fca in __rust_try test.177ba5ca09dc10c0-cgu.03                                                                                                                                                                                               
    #23 0x5615650471c8 in std::panicking::try::h155b212168a44c22 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:468:19                                                                             
    #24 0x56156502d369 in std::panic::catch_unwind::h079d27ba6d2118ae /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:142:14                                                                            
    #25 0x561564f39974 in std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::h218a7cfed0d4383d /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:528:30                           
    #26 0x561564f8a296 in core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h263a737e608daa3d /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5                        
    #27 0x561565f42e08 in _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::hdb01105f7afa6eb8 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2007:9
    #28 0x561565f429ac in _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::h30323d6105437a70 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2007:9
    #29 0x561565ca2ffd in std::sys::unix::thread::Thread::new::thread_start::h16d698daf583f1b1 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/thread.rs:108:17                                         
    #30 0x5615649e94ba in asan_thread_start(void*) /rustc/llvm/src/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:225:31                                                                                                                               
    #31 0x7f25be87fb42  (/lib/x86_64-linux-gnu/libc.so.6+0x94b42) (BuildId: 229b7dc509053fe4df5e29e8629911f0c3bc66dd)                                                                                                                                           
    #32 0x7f25be910bb3 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x125bb3) (BuildId: 229b7dc509053fe4df5e29e8629911f0c3bc66dd)                                                                                                                                
                                                                                                                                                                                                                                                                
Address 0x7f257baf75fc is located in stack of thread T12 at offset 1532 in frame                                                                                                                                                                                
    #0 0x561564dee03f in spl_token_2022::extension::test::alloc_new_tlv_in_account_info_from_base_size::h8d53f90649175a3e /build/src/extension/mod.rs:2364                                                                                                      
                                                                                                                                                                                                                                                                
  This frame has 32 object(s):                                                                                                                                                                                                                                  
    [32, 48) '' (line 2364)                                                                                                                                                                                                                                     
    [64, 112) '_89' (line 2394)                                                                                                                                                                                                                                 
    [144, 176) '_82' (line 2394)                                                                                                                                                                                                                                
    [208, 240) '_78' (line 2395)                                                                                                                                                                                                                                
    [272, 304) '_77' (line 2394)                                                                                                                                                                                                                                
    [336, 352) '_75' (line 2394)                                                                                                                                                                                                                                
    [368, 384) '_72' (line 2393)                                                                                                                                                                                                                                
    [400, 448) 'account_info4' (line 2393)                                                                                                                                                                                                                      
    [480, 512) '_68' (line 2390)                                                                                                                                                                                                                                
    [544, 560) '_64' (line 2389)                                                                                                                                                                                                                                
    [576, 624) 'account_info3' (line 2389)                                                                                                                                                                                                                      
    [656, 704) '_62' (line 2381)                                                                                                                                                                                                                                
    [736, 768) '_54' (line 2382)                                                                                                                                                                                                                                
    [800, 824) '_53' (line 2381)                                                                                                                                                                                                                                
    [864, 880) '_51' (line 2381)                                                                                                                                                                                                                                
    [896, 1000) '_48' (line 2380)                                                                                                                                                                                                                               
    [1040, 1144) 'state1' (line 2380)                                                                                                                                                                                                                           
    [1184, 1232) '_46' (line 2379)                                                                                                                                                                                                                              
    [1264, 1272) '_36' (line 2379)                                                                                                                                                                                                                              
    [1296, 1312) '_34' (line 2379)                                                                                                                                                                                                                              
    [1328, 1336) 'new_account_len' (line 2378)                                                                                                                                                                                                                  
    [1360, 1392) '_28' (line 2377)                                                                                                                                                                                                                              
    [1424, 1440) '_24' (line 2375)                                                                                                                                                                                                                              
    [1456, 1504) 'account_info' (line 2375)                                                                                                                                                                                                                     
    [1536, 1568) 'key' (line 2374) <== Memory access at offset 1532 underflows this variable                                                                                                                                                                    
    [1600, 1664) 'data' (line 2373)                                                                                                                                                                                                                             
    [1696, 1832) '_14' (line 2369)                                                                                                                                                                                                                              
    [1904, 2040) 'state' (line 2369)                                                                                                                                                                                                                            
    [2112, 2136) 'buffer' (line 2368)                                                                                                                                                                                                                           
    [2176, 2208) '_9' (line 2366)                                                                                                                                                                                                                               
    [2240, 2264) '_2' (line 2365)                                                                                                                                                                                                                               
    [2304, 2328) 'variable_len' (line 2365)                                                                                                                                                                                                                     
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork                                                                                                                                                
      (longjmp and C++ exceptions *are* supported)                                                                                                                                                                                                              
Thread T12 created by T0 here:                                                                                                                                                                                                                                  
    #0 0x5615649d13fd in pthread_create /rustc/llvm/src/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:237:3                                                                                                                                           
    #1 0x561565ca24bf in std::sys::unix::thread::Thread::new::h6d4b7ba0d9004e40 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/thread.rs:87:19                                                         
    #2 0x561564f387cd in std::thread::Builder::spawn_unchecked_::h8483f721becb457c /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:571:30                                                          
    #3 0x561564f3735a in std::thread::Builder::spawn_unchecked::h25a3eec570c4f63a /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:457:32                                                           
    #4 0x561564f3a06d in std::thread::Builder::spawn::h0c2d13460ebb087c /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:389:18                                                                     
    #5 0x561564f48aca in test::run_tests::hcbc8d34d00e9e5da /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:387:31                                                                                       
    #6 0x561564f24b95 in test::console::run_tests_console::h6bed1e9ce9c66ee9 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/console.rs:329:5                                                                   
    #7 0x561564f42f7f in test::test_main::h4d763005930afa53 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:143:15                                                                                       
    #8 0x561564f44f0c in test::test_main_static::h25112a2e15eb2a26 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/lib.rs:162:5                                                                                 
    #9 0x561564e61a52 in spl_token_2022::main::h509ba4890f2e36b9 /build/src/lib.rs:1:1                                                                                                                                                                          
    #10 0x561564ce8f88 in std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h8fbe83cc90f9289e /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:167:18                                                      
    #11 0x561565e85f4d in std::panic::catch_unwind::heca66f3f340f120b /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:142:14                                                                            
    #12 0x561565c30e7f in std::panicking::try::do_call::h5ac7b962b8454b96 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:504:40                                                                    
    #13 0x561565e85f0d in std::panic::catch_unwind::h9340f032204035ed /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:142:14                                                                            
    #14 0x561564ce8ef4 in std::rt::lang_start::h37e3ea005e9dbaaf /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:166:17                                                                                    
    #15 0x561564e61a7d in main (/build/target/x86_64-unknown-linux-gnu/debug/deps/spl_token_2022-c5204a427e1bc4fa+0xa40a7d) (BuildId: d53a2c67d4b7d8a1509f43da5b7094ced95157b0)                                                                                 
                                                                                                                                                                                                                                                                
SUMMARY: AddressSanitizer: stack-buffer-overflow /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-program-1.17.4/src/account_info.rs:87:9 in solana_program::account_info::AccountInfo::original_data_len::h355a2e1e97f46993                   
Shadow bytes around the buggy address:                                                                                                                                                                                                                          
  0x7f257baf7300: f2 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8 f2 f2                                                                                                                                                                                               
  0x7f257baf7380: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f2 f2 f2                                                                                                                                                                                               
  0x7f257baf7400: f2 f2 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f2                                                                                                                                                                                               
  0x7f257baf7480: f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f2 f2 f2 f2 f8 f2                                                                                                                                                                                               
  0x7f257baf7500: f2 f2 f8 f8 f2 f2 f8 f2 f2 f2 00 00 00 00 f2 f2                                                                                                                                                                                               
=>0x7f257baf7580: f2 f2 f8 f8 f2 f2 00 00 00 00 00 00 f2 f2 f2[f2]                                                                                                                                                                                              
  0x7f257baf7600: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 00 00                                                                                                                                                                                               
  0x7f257baf7680: f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8                                                                                                                                                                                               
  0x7f257baf7700: f8 f8 f8 f8 f8 f2 f2 f2 f2 f2 f2 f2 f2 f2 00 00                                                                                                                                                                                               
  0x7f257baf7780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f2                                                                                                                                                                                               
  0x7f257baf7800: f2 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2                                                                                                                                                                                               
Shadow byte legend (one shadow byte represents 8 application bytes):                                                                                                                                                                                            
  Addressable:           00                                                                                                                                                                                                                                     
  Partially addressable: 01 02 03 04 05 06 07                                                                                                                                                                                                                   
  Heap left redzone:       fa                                                                                                                                                                                                                                   
  Freed heap region:       fd                                                                                                                                                                                                                                   
  Stack left redzone:      f1                                                                                                                                                                                                                                   
  Stack mid redzone:       f2                                                                                                                                                                                                                                   
  Stack right redzone:     f3                                                                                                                                                                                                                                   
  Stack after return:      f5                                                                                                                                                                                                                                   
  Stack use after scope:   f8                                                                                                                                                                                                                                   
  Global redzone:          f9                                                                                                                                                                                                                                   
  Global init order:       f6                                                                                                                                                                                                                                   
  Poisoned by user:        f7                                                                                                                                                                                                                                   
  Container overflow:      fc                                                                                                                                                                                                                                   
  Array cookie:            ac                                                                                                                                                                                                                                   
  Intra object redzone:    bb                                                                                                                                                                                                                                   
  ASan internal:           fe                                                                                                                                                                                                                                   
  Left alloca redzone:     ca                                                                                                                                                                                                                                   
  Right alloca redzone:    cb                                                                                                                                                                                                                                   
==6889==ABORTING                                                                                                                                                                                                                                                
error: test failed, to rerun pass `--lib`                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                
Caused by:                                                                                                                                                                                                                                                      
  process didn't exit successfully: `/build/target/x86_64-unknown-linux-gnu/debug/deps/spl_token_2022-c5204a427e1bc4fa` (exit status: 1)                                                                                                                        
note: test exited abnormally; to see the full output pass --nocapture to the harness.                                                                                                                                                                           
     Running tests/action.rs (target/x86_64-unknown-linux-gnu/debug/deps/action-d92a60d7e5249b26)                                                                                                                                                               
                                                                                                                                                                                                                                                                
running 0 tests                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s                                                                                                                                                                   
                                                                                                                                                                                                                                                                
     Running tests/assert_instruction_count.rs (target/x86_64-unknown-linux-gnu/debug/deps/assert_instruction_count-6724448c9358c68a)                                                                                                                           
                                                                                                                                                                                                                                                                
running 0 tests                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s                                                                                                                                                                   
                                                                                                                                                                                                                                                                
     Running tests/serialization.rs (target/x86_64-unknown-linux-gnu/debug/deps/serialization-9548e2fc7ec7764d)                                                                                                                                                 
                                                                                                                                                                                                                                                                
running 0 tests                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s                                                                                                                                                                   
                                                                                                                                                                                                                                                                
   Doc-tests spl-token-2022                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                
running 1 test                                                                                                                                                                                                                                                  
test src/offchain.rs - offchain::resolve_extra_transfer_account_metas (line 20) ... ignored                                                                                                                                                                     
                                                                                                                                                                                                                                                                
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s                                                                                                                                                                   
                                                                                                                                                                                                                                                                
error: 1 target failed:                                                                                                                                                                                                                                         
    `--lib`