Blender Git Loki

Git Commits -> Revision a31eca3

Revision a31eca3 by Alexander Gavrilov (master)
September 5, 2016, 12:50 (GMT)
Fix T49251: moving smoke domain with additional resolution causes crash.

This is a bug in the multithreaded task manager in negative value range.

The problem here is that if previter is unsigned, the comparison in the
return statement is unsigned, and works incorrectly if stop < 0 &&
iter >= 0. This in turn can happen if stop is close to 0, because this
code is designed to overrun the stop by chunk_size*num_threads as
the threads terminate.

This probably should go into 2.78 as it prevents a crash.

Commit Details:

Full Hash: a31eca3fdd0d2e18b73f180b87a4c77ac5a8da78
Parent Commit: c51cfbb
Lines Changed: +3, -2

1 Modified Path:

/source/blender/blenlib/intern/task.c (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021