我希望地址清理程序在捕獲某些內容時放棄。我認爲這是默認設計的,但它似乎不適合我。我也試過ASAN_OPTIONS=halt_on_error=1這沒有效果。下面是詳細信息: 在一個項目中,我的工作,我們使用的地址清潔劑,它散發出此警告/錯誤數週沒有人意識到這一點: runtime error: null pointer passed as argument xx, which is declare
我正在嘗試修復一些帶地址清理程序的C++代碼。 代碼說: unsigned result = *(uint32_t*)data;
而且消毒給出: runtime error: load of misaligned address 0x6280033f410a for type 'uint32_t', which requires 4 byte alignment
如何需要解決這一問題?