Hi Bilal, Peter, Sorry for the late reply. I checked Bilal's patch and Peter's committed version. The fix looks good to me, including Peter's added canReturnData check in spgInitInnerConsistentIn(). His test is simpler and still catches the original bug.
Regards, Rui
