There is a difference, in the standard, between undefined and implementation-defined (unspecified) behaviour though.
The former is similar to the latter, only it must be documented. Unspecified behaviors imply some choice from among alternatives which need not be documented. (Like the order in which the argument expressions of a function are evaluated.)