Skip to content

Commit 6f5006e

Browse files
authored
Merge pull request #9259 from zhang2014/fix/address_sanitize
fix(base): suppression address sanitize when load config
2 parents 9905c33 + 2f056c6 commit 6f5006e

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/common/storage/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ pub struct StorageMokaConfig {
451451
}
452452

453453
impl Default for StorageMokaConfig {
454+
#[no_sanitize(address)]
454455
fn default() -> Self {
455456
Self {
456457
// Use 1G as default.

src/common/storage/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
//! - Table snapshots, segments cache must be stored accessed via cache operator.
2929
//! - Intermediate data generated by query could be stored by temporary operator.
3030
31+
#![feature(no_sanitize)]
32+
3133
mod config;
3234
pub use config::CacheConfig;
3335
pub use config::ShareTableConfig;

src/query/config/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#![feature(no_sanitize)]
16+
1517
/// Config mods provide config support.
1618
///
1719
/// We are providing two config types:

src/query/config/src/outer_v0.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl Config {
136136
/// with_args is to control whether we need to load from args or not.
137137
/// We should set this to false during tests because we don't want
138138
/// our test binary to parse cargo's args.
139+
#[no_sanitize(address)]
139140
pub fn load(with_args: bool) -> Result<Self> {
140141
let mut arg_conf = Self::default();
141142

0 commit comments

Comments
 (0)