Blender Git Commit Log

Git Commits -> Revision 7b6da0a

Revision 7b6da0a by Sergey Sharybin (master)
February 18, 2019, 14:25 (GMT)
Jpeg: Fix write past array boundary

Was happening when image buffer had cryptomatte pass, which can easily
exceed 530 bytes used by the buffer.

Now default buffer is bumped to 1K, and also allowed to be heap-allocated
when really need bigger buffer.

Possible optimization is to allocate buffer once, but in practice those
re-allocations will not happen often, so keeping code simpler is not an
issue. Just something for a rainy day.

Commit Details:

Full Hash: 7b6da0ace7790682f61e5bfb560581151984f016
Parent Commit: 4c3d486
Lines Changed: +21, -5

1 Modified Path:

/source/blender/imbuf/intern/jpeg.c (+21, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021