2011-11-01から1ヶ月間の記事一覧
以下のプログラムはstd::allocatorを継承して自作アロケータを作成し、実際よりも32byte多めに確保してその前後に 固定値を入れ、解放時に固定地を書き込んだ領域に不正書き込みがないか確認するものである。 #include <stdio.h> #include <map> #include <vector> #include <string> struc</string></vector></map></stdio.h>…
以下のプログラムはstd::allocatorを継承して自作アロケータを作成し、実際よりも32byte多めに確保してその前後に 固定値を入れ、解放時に固定地を書き込んだ領域に不正書き込みがないか確認するものである。 #include <stdio.h> #include <map> #include <vector> #include <string> struc</string></vector></map></stdio.h>…