We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
メモリ確保失敗時の挙動について調査する
The text was updated successfully, but these errors were encountered:
落ちます。
通常、 new が失敗すると std::bad_alloc が発生します。 サクラエディタは基本的に例外処理をしていないので キャッチされない例外ハンドラの実装によりstd::terminateされます。(落ちます。)
new
std::bad_alloc
std::terminate
一部コードで利用されている new(std::nothrow) が失敗すると戻り値は NULL になります。 サクラエディタは基本的にNULLチェックをしていないので 確保失敗したメモリを参照した時点で Access Violation が発生してプログラムが落ちます。
new(std::nothrow)
https://docs.microsoft.com/ja-jp/cpp/cpp/new-operator-cpp?view=vs-2019 https://docs.microsoft.com/ja-jp/cpp/c-runtime-library/reference/set-new-handler?view=vs-2019
Sorry, something went wrong.
No branches or pull requests
メモリ確保失敗時の挙動について調査する
The text was updated successfully, but these errors were encountered: