JDK-8215150 : Add NULL checks for memory allocation calls for File Reader
Type:Bug
Component:javafx
Sub-Component:web
Affected Version:openjfx12
Priority:P4
Status:Open
Resolution:Unresolved
Submitted:2018-12-10
Updated:2019-03-23
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
We need to evaluate for adding memory allocation failure checks for below codes in FileSystemJava.cpp
env->NewStringUTF
env->NewDirectByteBuffer(data, length)
Comments
Do we have a general bug filed for handling OOM in WebKit? It might be good to look at this at in the larger context of that.