valgrind + bff: Integer divide by zero

Change-Id: I4c47d17a421f1c6d2d6cc29c7b92ec930bdf901f