LoginSignup
0
0

More than 5 years have passed since last update.

secureCoding > C11 > set_constraint_handler_s() | ignore_handler_s()

Last updated at Posted at 2015-04-23

引用: C/C++ セキュアコーディング 第2版 by Robert C. Seacordら

この例では、set_constraint_handler_s()の呼び出しを追加し、ignore_handler_s()関数を実行時制約ハンドラとして設定している。ignore_handler_s()関数が実行時制約ハンドラとして設定された場合、実行時制約違反を起こしたすべてのライブラリ関数は呼び出し元へリターンする。呼び出し元はライブラリ関数の仕様に基づいて、実行時制約違反が起こったかどうかを調べることができる。



set_constraint_handler_s
ignore_handler_s
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0