For example single precision, but there is in all precision.
For nrhs = 0 there is copy (line 530) N elements to B array, but size of B can be less then N

I suggest add condition
IF NRHS > 0
for this condition branch
and for branch on line 638 and 713

