mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-11-04 08:08:55 +08:00 
			
		
		
		
	[ci skip] Array module is buggy
AddressSanitizer: heap-use-after-free on address
This commit is contained in:
		@@ -32,7 +32,7 @@ unlock_notify = ["libsqlite3-sys/unlock_notify"]
 | 
				
			|||||||
vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7", "lazy_static"]
 | 
					vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7", "lazy_static"]
 | 
				
			||||||
csvtab = ["csv", "vtab"]
 | 
					csvtab = ["csv", "vtab"]
 | 
				
			||||||
# pointer passing interfaces: 3.20.0
 | 
					# pointer passing interfaces: 3.20.0
 | 
				
			||||||
array = ["vtab"]
 | 
					array = ["vtab", "bundled"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
time = "0.1.0"
 | 
					time = "0.1.0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -171,6 +171,7 @@ mod test {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    #[test]
 | 
					    #[test]
 | 
				
			||||||
    #[cfg_attr(rustfmt, rustfmt_skip)]
 | 
					    #[cfg_attr(rustfmt, rustfmt_skip)]
 | 
				
			||||||
 | 
					    #[ignore] // RUSTFLAGS="-Z sanitizer=address" cargo test --lib --features "array" -- --ignored
 | 
				
			||||||
    fn test_array_module() {
 | 
					    fn test_array_module() {
 | 
				
			||||||
        let db = Connection::open_in_memory().unwrap();
 | 
					        let db = Connection::open_in_memory().unwrap();
 | 
				
			||||||
        array::load_module(&db).unwrap();
 | 
					        array::load_module(&db).unwrap();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user