diff options
author | Sven Gothel <[email protected]> | 2022-05-06 19:26:38 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-05-06 19:26:38 +0200 |
commit | 055a20888b8765b23292145d28f3be9f7a960afd (patch) | |
tree | f740272c55b82403e73e4b5aef34e2f764f06d95 | |
parent | 648c54abd2e29df7252c7518650e50aed245c735 (diff) |
BTObject::checkValidInstance(): Can't call toString() on invalid object, already reading unallocated memory.
-rw-r--r-- | api/direct_bt/BTTypes1.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/direct_bt/BTTypes1.hpp b/api/direct_bt/BTTypes1.hpp index 7cdd6a4e..62db76ef 100644 --- a/api/direct_bt/BTTypes1.hpp +++ b/api/direct_bt/BTTypes1.hpp @@ -62,7 +62,7 @@ namespace direct_bt { void checkValidInstance() const override { if( !isValidInstance() ) { - throw jau::IllegalStateException("BTObject::checkValidInstance: Invalid object: "+toString(), E_FILE_LINE); + throw jau::IllegalStateException("BTObject::checkValidInstance: Invalid object: "+jau::to_hexstring(this), E_FILE_LINE); } } }; |