Blender Git Commit Log

Git Commits -> Revision fcf8fc3

Revision fcf8fc3 by Jeroen Bakker (master)
December 10, 2021, 09:37 (GMT)
Fix Crash: Loading Huge Images.

When loading huge images (30k) blender crashed with a buffer overflow.
The reason is that determine the length of a buffer was done in 32bit
precision and afterwards stored in 64 bit precision.

This patch adds a new function to do the correct calculation in 64bit.
It should be added to other sections in blender as well. But that should
be tested on a per case situation.

Commit Details:

Full Hash: fcf8fc3eaa34996cb89b156ba15ced767dc42f08
Parent Commit: 57f46b9
Lines Changed: +18, -2

3 Modified Paths:

/source/blender/imbuf/IMB_imbuf.h (+11, -0) (Diff)
/source/blender/imbuf/intern/allocimbuf.c (+5, -0) (Diff)
/source/blender/imbuf/intern/scaling.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021