@@ -146,21 +146,20 @@ The OpenEXR file format places no fixed limit on image size, except
146146that image width and height are represented by signed 32-bit integers
147147and therefore technically limited to a maximum of 2,147,483,647.
148148
149- Memory allocation failures caused by large image dimensions declared
150- in file headers are not considered security vulnerabilities when the
151- allocation size is proportional to the declared image dimensions. EXR
152- files can legitimately describe very large images, and the memory
153- required to decode them is inherently proportional to their pixel
154- count. Exhausting available memory on a given machine is a system
155- resource constraint, not a library defect — the same file that
149+ Attempting to read a very large image may result in an "out-of-memory
150+ failure. This is not considered a security vulnerability. The memory
151+ required to decode such an image is inherently proportional to its
152+ pixel count, even if compression reduces the image to a small file
153+ size on disk. Exhausting available memory on a given machine is a
154+ system resource constraint, not a library defect — the same file that
156155triggers an out-of-memory error on one machine may load successfully
157156on another with more memory.
158157
159158The OpenEXR library provides
160- `Imf::Header::setMaxImageSize(int maxWidth,int maxHeight) ` and
161- `Imf::Header:"setMaxTileSize(int maxWidth,int maxHeight) ` (and
162- `exr_set_default_maximum_image_size() ` and
163- `exr_set_default_maximum_tile_size() ` in OpenEXRCore) to allow
159+ `` Imf::Header::setMaxImageSize(int maxWidth,int maxHeight) ` ` and
160+ `` Imf::Header:"setMaxTileSize(int maxWidth,int maxHeight) ` ` (and
161+ `` exr_set_default_maximum_image_size() ` ` and
162+ `` exr_set_default_maximum_tile_size() ` ` in OpenEXRCore) to allow
164163applications to reject files with dimensions exceeding a configurable
165164limit before any large allocation occurs. Applications processing
166165untrusted EXR files should set these limits to values appropriate for
0 commit comments