diff options
author | Jack Lloyd <[email protected]> | 2017-03-19 15:12:21 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-03-19 15:12:21 -0400 |
commit | 6817d1a2332b822e7f12e8904ad8e27081d6c827 (patch) | |
tree | 81165abcb778f21dd0931eaccd2a5734bee1356e /src/lib/utils/os_utils.h | |
parent | 5c4274fcc0bee0367a51b669e1a2953a1fec6684 (diff) |
No C++ exceptions from cpu probe functions. See GH #920
Diffstat (limited to 'src/lib/utils/os_utils.h')
-rw-r--r-- | src/lib/utils/os_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/utils/os_utils.h b/src/lib/utils/os_utils.h index a1693bcc5..cae1192f1 100644 --- a/src/lib/utils/os_utils.h +++ b/src/lib/utils/os_utils.h @@ -98,9 +98,10 @@ void free_locked_pages(void* ptr, size_t length); * thread safe. It should only be called in a single-threaded context * (ie, at static init time). * +* If probe_fn throws an exception the result is undefined. +* * Return codes: * -1 illegal instruction detected -* -2 exception thrown */ int BOTAN_DLL run_cpu_instruction_probe(std::function<int ()> probe_fn); |