Group: V 2.31 release
Hi I found a nasty division by 0 in filesel.c.
To reproduce you open up fileselector in lower window.
Then resize whole blender window so that no files
shows. Resize it up/down while no files shows, at one
point variable "val" is set to zero and a crash comes!
A simple check for zero fixes this
line 1005 in filesel.c
static int calc_filesel_regel(SpaceFile *sfile, int
nr, int *valx, int *valy)
/* get screen coordinate of a 'regel', dutch
for line */
int val, coll;
/* amount of lines */
fix: if(val == 0)
fix: coll = 0;
coll = nr/val;
nr -= coll*val;