Add some band-aid to valid() in sxc format.
Merge branch 'bleeding-jumbo' into memdbg

* bleeding-jumbo:
  Add some band-aid to valid() in sxc format.