Canonical curves and quadrics of rank 4