On Mon, 7 Aug 2023 23:33:37 GMT, Alexander Matveev <almat...@openjdk.org> wrote:
> - Fixed by checking for `NULL` pointer after memory allocation. > - In `NativeVideoBuffer` `std::nothrow` was added when allocating `jint` > array, so `new` will return `NULL` instead of throwing exception. This done > for consistency and also it is not clear how well JNI handles C++ exceptions > in this case and what value will Java code get if exception is thrown. This pull request has now been integrated. Changeset: 9f180e20 Author: Alexander Matveev <almat...@openjdk.org> URL: https://git.openjdk.org/jfx/commit/9f180e20adc5bc8e6892d9672a414e8b7f614a20 Stats: 13 lines in 2 files changed: 11 ins; 0 del; 2 mod 8313900: Possible NULL pointer access in NativeAudioSpectrum and NativeVideoBuffer Reviewed-by: kcr, arapte ------------- PR: https://git.openjdk.org/jfx/pull/1204