CelestiaProject / Celestia

Real-time 3D visualization of space.
https://celestiaproject.space
GNU General Public License v2.0
1.85k stars 310 forks source link

Enforce an upper limit on image size #2249

Open ajtribick opened 1 day ago

ajtribick commented 1 day ago

It would probably make sense to impose a check on image sizes at load time to avoid trying to deal with huge images (or corrupt files whose metadata claims that the image dimensions are absurdly large). Any suggestions for an upper limit, e.g. maximum dimension 8192, 16384, 32768?

(For virtual textures this would be a per-tile limit)

375gnu commented 1 day ago

At least they should not be larger then max texture size.