Index: trunk/psphot/src/psphotSourceStats.c
===================================================================
--- trunk/psphot/src/psphotSourceStats.c	(revision 34321)
+++ trunk/psphot/src/psphotSourceStats.c	(revision 34404)
@@ -447,4 +447,7 @@
 	}
 
+	// skip saturated stars modeled with a radial profile (this probably never happens, since it is set after)
+        if (source->mode2 & PM_SOURCE_MODE2_SATSTAR_PROFILE) continue;
+
 	if (!(source->peak->type == PM_PEAK_SUSPECT_SATURATION)) {
 	    // measure basic source moments (no S/N clipping on input pixels)
@@ -521,5 +524,5 @@
     float PSF_SN_LIM = 2.0*psMetadataLookupF32(&status, recipe, "PSF_SN_LIM"); psAssert (status, "missing PSF_SN_LIM");
 
-
+    // XXX this will cause an error in the vector length is > 8
     # define NSIGMA 8
     // moved to config file
@@ -538,4 +541,5 @@
             sigma[i] = sigmavec->data.F32[i];
         }
+	assert (sigmavec->n <= 8);
         nsigma = sigmavec->n;
     } else {
